Home
last modified time | relevance | path

Searched refs:_finalizer_registry (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Lib/multiprocessing/
Dutil.py178 _finalizer_registry = {} variable
203 _finalizer_registry[self._key] = self
208 _finalizer_registry=_finalizer_registry, argument
214 del _finalizer_registry[self._key]
234 del _finalizer_registry[self._key]
245 return self._key in _finalizer_registry
275 if _finalizer_registry is None:
291 keys = [key for key in list(_finalizer_registry) if f(key)]
295 finalizer = _finalizer_registry.get(key)
306 _finalizer_registry.clear()
Dprocess.py307 util._finalizer_registry.clear()
/external/python/cpython2/Lib/multiprocessing/
Dutil.py168 _finalizer_registry = {} variable
190 _finalizer_registry[self._key] = self
197 del _finalizer_registry[self._key]
217 del _finalizer_registry[self._key]
228 return self._key in _finalizer_registry
257 if _finalizer_registry is None:
271 items = [x for x in _finalizer_registry.items() if f(x)]
283 _finalizer_registry.clear()
Dprocess.py263 util._finalizer_registry.clear()
/external/python/cpython2/Lib/test/
Dtest_multiprocessing.py2112 self.registry_backup = util._finalizer_registry.copy()
2113 util._finalizer_registry.clear()
2116 self.assertFalse(util._finalizer_registry)
2117 util._finalizer_registry.update(self.registry_backup)
/external/python/cpython3/Lib/test/
D_test_multiprocessing.py4154 self.registry_backup = util._finalizer_registry.copy()
4155 util._finalizer_registry.clear()
4158 self.assertFalse(util._finalizer_registry)
4159 util._finalizer_registry.update(self.registry_backup)