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

Method MLocker

source/core/StarThread.hpp:319–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317
318template <typename MutexType>
319MLocker<MutexType>::MLocker(MutexType& ref, bool l)
320 : m_mutex(ref), m_locked(false) {
321 if (l)
322 lock();
323}
324
325template <typename MutexType>
326MLocker<MutexType>::~MLocker() {

Callers

nothing calls this directly

Calls 1

lockFunction · 0.85

Tested by

no test coverage detected