We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01946d6 commit ce61048Copy full SHA for ce61048
1 file changed
wolframclient/utils/lock.py
@@ -3,15 +3,14 @@
3
from wolframclient.utils.importutils import safe_import_string_and_call
4
5
try:
6
-
7
_lock = safe_import_string_and_call('multithreading.Lock')
8
def Lock():
9
return _lock
10
11
except (ImportError, OSError):
12
13
- # JYTHON is raising an ImportError when running "import multithreading"
14
- # 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
15
16
from contextlib import contextmanager
17
import warnings
0 commit comments