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

Method WriteLocker

source/core/StarThread.cpp:92–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92WriteLocker::WriteLocker(ReadersWriterMutex& rwlock, bool startLocked) : m_lock(rwlock), m_locked(false) {
93 if (startLocked)
94 lock();
95}
96
97WriteLocker::~WriteLocker() {
98 unlock();

Callers

nothing calls this directly

Calls 1

lockFunction · 0.85

Tested by

no test coverage detected