ID EN
Multiprocessing

synchronized

Python 3.11

Return a process-safe wrapper object for a ctypes object which uses lock to synchronize access. If lock is None (the default) then a multiprocessing.RLock object is created automatically.

Syntax

PYTHON
multiprocessing.sharedctypes.synchronized(obj[, lock])

See Also

multiprocessing.RLock context manager