mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
bitbake: 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 (Bitbake rev: 105f2897b0618713b036fc0f7a6e0f3e78d1707a) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1e7cb630c7
commit
2015bf3eb8
@@ -2222,6 +2222,13 @@ class CookerParser(object):
|
|||||||
else:
|
else:
|
||||||
bb.error("Parsing halted due to errors, see error messages above")
|
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()
|
self.parser_quit.set()
|
||||||
|
|
||||||
# Cleanup the queue before call process.join(), otherwise there might be
|
# Cleanup the queue before call process.join(), otherwise there might be
|
||||||
@@ -2252,13 +2259,7 @@ class CookerParser(object):
|
|||||||
if hasattr(process, "close"):
|
if hasattr(process, "close"):
|
||||||
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.codeparser.parser_cache_savemerge()
|
||||||
bb.fetch.fetcher_parse_done()
|
bb.fetch.fetcher_parse_done()
|
||||||
if self.cooker.configuration.profile:
|
if self.cooker.configuration.profile:
|
||||||
|
|||||||
Reference in New Issue
Block a user