()
| 39 | } |
| 40 | |
| 41 | pub(super) fn release_lock_after_fork_parent() { |
| 42 | if IMP_LOCK.is_locked() && IMP_LOCK.is_owned_by_current_thread() { |
| 43 | unsafe { IMP_LOCK.unlock() }; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /// Reset import lock after fork() — only if held by a dead thread. |
| 48 | /// |
no test coverage detected