sfepy.base.multiproc_proc module¶
Multiprocessing functions - using multiprocessing (process based) module.
-
sfepy.base.multiproc_proc.
get_manager
()[source]¶ Get the multiprocessing manager. If not in the global cache, create a new instance.
Returns: - manager : manager
The multiprocessing manager.
-
sfepy.base.multiproc_proc.
get_mpdict_value
(mode, key, clear=False)[source]¶ Get the item from the global multiprocessing cache.
Parameters: - mode : str
The type of the required object.
- key : immutable type
The key of the required object.
- clear : bool
If True, clear the dictionary or list (for modes ‘dict’ and ‘list’).
Returns: - value : remote object
The remote object.