Update leenkx/blender/lnx/make.py
This commit is contained in:
		| @ -75,6 +75,11 @@ def run_proc(cmd, done: Callable) -> subprocess.Popen: | ||||
|             # Put the done callback into the callback queue so that it | ||||
|             # can be received by a polling function in the main thread | ||||
|             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: | ||||
|             done() | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user