We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b92943 commit 6ca576eCopy full SHA for 6ca576e
1 file changed
wolframclient/utils/lock.py
@@ -3,18 +3,18 @@
3
import warnings
4
5
try:
6
- import multithreading
+ import multiprocessing
7
8
- _lock = multithreading.Lock()
+ _lock = multiprocessing.Lock()
9
10
def Lock():
11
return _lock
12
13
14
except (ImportError, OSError):
15
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
+ # JYTHON is raising an ImportError when running "import multiprocessing"
+ # GVisor is raising an OSError when running "multiprocessing.Lock()" because the feature is not implemented
18
19
from contextlib import contextmanager
20
0 commit comments