diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2022-11-29 14:09:45 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-08 10:49:51 +0000 |
commit | 105f2897b0618713b036fc0f7a6e0f3e78d1707a (patch) | |
tree | c1c769205210b7bfef42bb718980727cb761a30c /lib/bb/cooker.py | |
parent | 2aed34e1d4bf24bba6263f168ff31b55b5fbe982 (diff) | |
download | bitbake-105f2897b0618713b036fc0f7a6e0f3e78d1707a.tar.gz |
cooker: Start sync thread a little earlier
Starts the sync thread slightly earlier to give it some extra time to
dump out the caches while the main process tears down the parsing
processes
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r-- | lib/bb/cooker.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 7f232f2b3..728ef0967 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -2222,6 +2222,13 @@ class CookerParser(object): else: bb.error("Parsing halted due to errors, see error messages above") + def sync_caches(): + for c in self.bb_caches.values(): + c.sync() + + self.syncthread = threading.Thread(target=sync_caches, name="SyncThread") + self.syncthread.start() + self.parser_quit.set() # Cleanup the queue before call process.join(), otherwise there might be @@ -2252,13 +2259,7 @@ class CookerParser(object): if hasattr(process, "close"): process.close() - def sync_caches(): - for c in self.bb_caches.values(): - c.sync() - sync = threading.Thread(target=sync_caches, name="SyncThread") - self.syncthread = sync - sync.start() bb.codeparser.parser_cache_savemerge() bb.fetch.fetcher_parse_done() if self.cooker.configuration.profile: |