MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / ReadLocker

Method ReadLocker

source/core/StarThread.cpp:63–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63ReadLocker::ReadLocker(ReadersWriterMutex& rwlock, bool startLocked) : m_lock(rwlock), m_locked(false) {
64 if (startLocked)
65 lock();
66}
67
68ReadLocker::~ReadLocker() {
69 unlock();

Callers

nothing calls this directly

Calls 1

lockFunction · 0.85

Tested by

no test coverage detected