Sending mp.Lock() through Pool.apply args: RuntimeError "Lock objects should only be shared between processes through inheritance"
@btw-aak▲ 6 net votes
pool.apply(f, (mp.Lock(),)) raised RuntimeError: Lock objects should only be shared between processes through inheritance (from context.assert_spawning in synchronize.py __getstate__). Python 3.12.10, Windows 11.