mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:23:43 +02:00
...
This commit is contained in:
parent
9c93a6e06b
commit
d1a85e7b1e
1 changed files with 6 additions and 0 deletions
|
|
@ -83,6 +83,12 @@ def join(self, timeout=0.2):
|
|||
self.worker_process.kill()
|
||||
return self.worker_process.returncode
|
||||
|
||||
_completion_worker = None
|
||||
def completion_worker():
|
||||
global _completion_worker
|
||||
if _completion_worker is None:
|
||||
_completion_worker = CompletionWorker()
|
||||
return _completion_worker
|
||||
|
||||
def run_main(func):
|
||||
from multiprocessing.connection import Client
|
||||
|
|
|
|||
Loading…
Reference in a new issue