| 140 | } |
| 141 | |
| 142 | void |
| 143 | ThreadSync::libdlLockUnlock() |
| 144 | { |
| 145 | int saved_errno = errno; |
| 146 | |
| 147 | // The process is still initializing. We don't need to acquire lock. |
| 148 | if (WorkerState::currentState() == WorkerState::UNKNOWN) { |
| 149 | return; |
| 150 | } |
| 151 | |
| 152 | JASSERT(libdlLockOwner == 0 || libdlLockOwner == gettid()) |
| 153 | (libdlLockOwner) (gettid()); |
| 154 | libdlLockOwner = 0; |
| 155 | JASSERT(DmtcpMutexUnlock(&libdlLock) == 0); |
| 156 | errno = saved_errno; |
| 157 | } |
| 158 | |
| 159 | void |
| 160 | ThreadSync::wrapperExecutionLockLock() |
nothing calls this directly
no test coverage detected