pathex.managing.processes module
- class SynchronizerProxy(token, serializer, manager=None, authkey=None, exposed=None, incref=True, manager_owned=False)[source]
Bases:
multiprocessing.managers.BaseProxy,pathex.managing.mixins.ManagerMixin,pathex.managing.mixins.LogbookMixinThis class represents is a
proxyto aSynchronizerobject.
- get_mp_process_manager(module_name: Optional[str], address: Optional[tuple[str, int]] = None, authkey=None, manager_class: type[~_T] = <class 'multiprocessing.managers.SyncManager'>, ensure_clean_call=False, warn=False)[source]
Returns a
manager_classaccording withmodule_name. Ifmodule_nameis__main__then the manager will bestartedin the given address with the given authkey. Ifmodule_nameis not__main__then the manager will beconnectedto the givenaddresswith the givenauthkey.If
ensure_cleanisTrue, aRuntimeErrorwill be raised ifaddressisNone. Ifensure_cleanisFalseandwarnisTrueaRuntimeWarningwill be emitted instead. Ifensure_cleanisFalseandwarnisFalseno error or warning will be emitted. IfwarnisTrueandauthkeyisNone, aRuntimeWarningwill be emitted.