Update leenkx/blender/lnx/make.py
This commit is contained in:
parent
a747f89438
commit
609477737e
@ -75,6 +75,11 @@ def run_proc(cmd, done: Callable) -> subprocess.Popen:
|
|||||||
# Put the done callback into the callback queue so that it
|
# Put the done callback into the callback queue so that it
|
||||||
# can be received by a polling function in the main thread
|
# can be received by a polling function in the main thread
|
||||||
thread_callback_queue.put([threading.current_thread(), done], block=True)
|
thread_callback_queue.put([threading.current_thread(), done], block=True)
|
||||||
|
while not thread_callback_queue.empty():
|
||||||
|
print("Processing callback from thread:", threading.current_thread())
|
||||||
|
thread, callback = thread_callback_queue.get()
|
||||||
|
if callback is not None:
|
||||||
|
callback()
|
||||||
else:
|
else:
|
||||||
done()
|
done()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user