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

Method try_lock

include/thundersvm/util/log.h:983–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981 }
982
983 inline bool try_lock(void) {
984# if ELPP_OS_UNIX
985 return (pthread_mutex_trylock(&m_underlyingMutex) == 0);
986# elif ELPP_OS_WINDOWS
987 return TryEnterCriticalSection(&m_underlyingMutex);
988# endif // ELPP_OS_UNIX
989 }
990
991 inline void unlock(void) {
992# if ELPP_OS_UNIX

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected