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

Function DebugEnabled

system/threading/mutex.cpp:9–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace internal {
8
9static inline int DebugEnabled(int type)
10{
11#ifdef NDEBUG
12 return type;
13#else
14 if (type == PTHREAD_MUTEX_RECURSIVE)
15 return type;
16 // Alwasy enable errcheck in debug mode
17 return PTHREAD_MUTEX_ERRORCHECK_NP;
18#endif
19}
20
21MutexBase::MutexBase(int type)
22{

Callers 1

MutexBaseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected