Compare commits
No commits in common. "factor_into_hotbaud" and "main" have entirely different histories.
factor_int
...
main
|
@ -17,8 +17,6 @@
|
||||||
Utils to tame mp non-SC madeness
|
Utils to tame mp non-SC madeness
|
||||||
|
|
||||||
'''
|
'''
|
||||||
from functools import partial
|
|
||||||
from multiprocessing.shared_memory import SharedMemory
|
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,6 +26,7 @@ def disable_mantracker():
|
||||||
it's an absolute multi-threaded mess of non-SC madness.
|
it's an absolute multi-threaded mess of non-SC madness.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
from multiprocessing.shared_memory import SharedMemory
|
||||||
|
|
||||||
|
|
||||||
# 3.13+ only.. can pass `track=False` to disable
|
# 3.13+ only.. can pass `track=False` to disable
|
||||||
|
@ -39,6 +38,7 @@ def disable_mantracker():
|
||||||
('3', '13')
|
('3', '13')
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
|
from functools import partial
|
||||||
return partial(
|
return partial(
|
||||||
SharedMemory,
|
SharedMemory,
|
||||||
track=False,
|
track=False,
|
||||||
|
@ -70,4 +70,6 @@ def disable_mantracker():
|
||||||
mantracker.getfd = mantracker._resource_tracker.getfd
|
mantracker.getfd = mantracker._resource_tracker.getfd
|
||||||
|
|
||||||
# use std type verbatim
|
# use std type verbatim
|
||||||
return SharedMemory
|
shmT = SharedMemory
|
||||||
|
|
||||||
|
return shmT
|
||||||
|
|
Loading…
Reference in New Issue