Skip to content

Commit d4b93db

Browse files
committed
this should be called multiprocessing
1 parent b0ad6f0 commit d4b93db

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

wolframclient/serializers/encoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from functools import partial
77

88
from wolframclient.serializers.utils import safe_len
9-
from wolframclient.utils.api import multithreading, pkg_resources
9+
from wolframclient.utils.api import multiprocessing, pkg_resources
1010
from wolframclient.utils.dispatch import Dispatch
1111
from wolframclient.utils.functional import composition, is_iterable, iterate, map
1212
from wolframclient.utils.importutils import safe_import_string
@@ -64,7 +64,7 @@ def _update_plugins(self):
6464
# global lock to avoid multiple dispatcher updating in multithreaded programs.
6565

6666
def update_dispatch(self):
67-
with multithreading.Lock():
67+
with multiprocessing.Lock():
6868
self._update_dispatch()
6969
self._update_plugins()
7070

wolframclient/utils/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
PackedArray="wolframclient.utils.packedarray.PackedArray",
148148
)
149149

150-
multithreading = API(Lock="wolframclient.utils.lock.Lock")
150+
multiprocessing = API(Lock="wolframclient.utils.lock.Lock")
151151
pkg_resources = API(
152152
iter_entry_points=("pkg_resources.iter_entry_points", lambda *args, **opts: ())
153153
)

wolframclient/utils/lock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from wolframclient.utils.importutils import safe_import_string_and_call
44

55
try:
6-
_lock = safe_import_string_and_call("multithreading.Lock")
6+
_lock = safe_import_string_and_call("multiprocessing.Lock")
77

88
def Lock():
99
return _lock

0 commit comments

Comments
 (0)