MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / lock

Method lock

include/thundersvm/util/log.h:975–981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973 }
974
975 inline void lock(void) {
976# if ELPP_OS_UNIX
977 pthread_mutex_lock(&m_underlyingMutex);
978# elif ELPP_OS_WINDOWS
979 EnterCriticalSection(&m_underlyingMutex);
980# endif // ELPP_OS_UNIX
981 }
982
983 inline bool try_lock(void) {
984# if ELPP_OS_UNIX

Callers 7

setFromBaseMethod · 0.45
dispatchMethod · 0.45
getLoggerMethod · 0.45
unregisterLoggerMethod · 0.45
hasLoggerMethod · 0.45
ScopedLockMethod · 0.45
acquireLockMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected