Skip to content

Commit 6ca576e

Browse files
Dorian BirrauxRaj Balaebail
authored andcommitted
multithreading module does not exist
replacing it by multiprocessing
1 parent 0b92943 commit 6ca576e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

wolframclient/utils/lock.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
import warnings
44

55
try:
6-
import multithreading
6+
import multiprocessing
77

8-
_lock = multithreading.Lock()
8+
_lock = multiprocessing.Lock()
99

1010
def Lock():
1111
return _lock
1212

1313

1414
except (ImportError, OSError):
1515

16-
# JYTHON is raising an ImportError when running "import multithreading"
17-
# GVisor is raising an OSError when running "multithreading.Lock()" because the feature is not implemented
16+
# JYTHON is raising an ImportError when running "import multiprocessing"
17+
# GVisor is raising an OSError when running "multiprocessing.Lock()" because the feature is not implemented
1818

1919
from contextlib import contextmanager
2020

0 commit comments

Comments
 (0)