MCPcopy Create free account
hub / github.com/deskflow/deskflow / lockJobListLock

Method lockJobListLock

src/lib/net/SocketMultiplexer.cpp:261–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void SocketMultiplexer::lockJobListLock()
262{
263 Lock lock(m_mutex);
264
265 // wait for the lock on the lock
266 while (*m_jobListLockLocked) {
267 m_jobListLockLocked->wait();
268 }
269
270 // take ownership of the lock on the lock
271 *m_jobListLockLocked = true;
272 m_jobListLockLocker = new Thread(Thread::getCurrentThread());
273}
274
275void SocketMultiplexer::lockJobList()
276{

Callers

nothing calls this directly

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected