MCPcopy Create free account
hub / github.com/chen3feng/toft / MutexBase

Method MutexBase

system/threading/mutex.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21MutexBase::MutexBase(int type)
22{
23 type = DebugEnabled(type);
24 pthread_mutexattr_t attr;
25 TOFT_CHECK_PTHREAD_ERROR(pthread_mutexattr_init(&attr));
26 TOFT_CHECK_PTHREAD_ERROR(pthread_mutexattr_settype(&attr, type));
27 TOFT_CHECK_PTHREAD_ERROR(pthread_mutex_init(&m_mutex, &attr));
28 TOFT_CHECK_PTHREAD_ERROR(pthread_mutexattr_destroy(&attr));
29}
30
31MutexBase::~MutexBase()
32{

Callers

nothing calls this directly

Calls 1

DebugEnabledFunction · 0.85

Tested by

no test coverage detected