()
| 25 | |
| 26 | |
| 27 | def _clear_plasma_store(): |
| 28 | # `_PlasmaStoreManager.__del__` will not be called automaticly in subprocess, |
| 29 | # so this function should be called explicitly |
| 30 | global MGE_PLASMA_STORE_MANAGER |
| 31 | if MGE_PLASMA_STORE_MANAGER is not None and MGE_PLASMA_STORE_MANAGER.refcount == 0: |
| 32 | del MGE_PLASMA_STORE_MANAGER |
| 33 | MGE_PLASMA_STORE_MANAGER = None |
| 34 | |
| 35 | |
| 36 | class _ExceptionWrapper: |