multiprocessing.SimpleQueue.get()

get() Remove and return an item from the queue.

multiprocessing.SimpleQueue.empty()

empty() Return True if the queue is empty, False otherwise.

multiprocessing.SimpleQueue

class multiprocessing.SimpleQueue It is a simplified Queue type, very close to a locked Pipe. empty() Return True if the queue is empty, False otherwise. get() Remove and return an item from the queue. put(item) Put item into the queue.

multiprocessing.sharedctypes.Value()

multiprocessing.sharedctypes.Value(typecode_or_type, *args, lock=True) The same as RawValue() except that depending on the value of lock a process-safe synchronization wrapper may be returned instead of a raw ctypes object. If lock is True (the default) then a new lock object is created to synchronize access to the value. If lock is a Lock or RLock object then that will be used to synchronize access to the value. If lock is False then access to the returned object will not be automatically p

multiprocessing.sharedctypes.synchronized()

multiprocessing.sharedctypes.synchronized(obj[, lock]) 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. A synchronized wrapper will have two methods in addition to those of the object it wraps: get_obj() returns the wrapped object and get_lock() returns the lock object used for synchronization. Note that accessing the ctypes object through the wrapper can

multiprocessing.sharedctypes.RawValue()

multiprocessing.sharedctypes.RawValue(typecode_or_type, *args) Return a ctypes object allocated from shared memory. typecode_or_type determines the type of the returned object: it is either a ctypes type or a one character typecode of the kind used by the array module. *args is passed on to the constructor for the type. Note that setting and getting the value is potentially non-atomic – use Value() instead to make sure that access is automatically synchronized using a lock. Note that an arra

multiprocessing.sharedctypes.RawArray()

multiprocessing.sharedctypes.RawArray(typecode_or_type, size_or_initializer) Return a ctypes array allocated from shared memory. typecode_or_type determines the type of the elements of the returned array: it is either a ctypes type or a one character typecode of the kind used by the array module. If size_or_initializer is an integer then it determines the length of the array, and the array will be initially zeroed. Otherwise size_or_initializer is a sequence which is used to initialize the a

multiprocessing.sharedctypes.multiprocessing.Manager()

multiprocessing.Manager() Returns a started SyncManager object which can be used for sharing objects between processes. The returned manager object corresponds to a spawned child process and has methods which will create shared objects and return corresponding proxies.

multiprocessing.sharedctypes.copy()

multiprocessing.sharedctypes.copy(obj) Return a ctypes object allocated from shared memory which is a copy of the ctypes object obj.

multiprocessing.sharedctypes.Array()

multiprocessing.sharedctypes.Array(typecode_or_type, size_or_initializer, *, lock=True) The same as RawArray() except that depending on the value of lock a process-safe synchronization wrapper may be returned instead of a raw ctypes array. If lock is True (the default) then a new lock object is created to synchronize access to the value. If lock is a Lock or RLock object then that will be used to synchronize access to the value. If lock is False then access to the returned object will not be