MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / libdlLockUnlock

Method libdlLockUnlock

src/threadsync.cpp:142–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void
143ThreadSync::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
159void
160ThreadSync::wrapperExecutionLockLock()

Callers

nothing calls this directly

Calls 3

currentStateFunction · 0.85
DmtcpMutexUnlockFunction · 0.85
gettidFunction · 0.70

Tested by

no test coverage detected