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

Method Mutex

include/thundersvm/util/log.h:955–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953class Mutex : base::NoCopy {
954 public:
955 Mutex(void) {
956# if ELPP_OS_UNIX
957 pthread_mutexattr_t attr;
958 pthread_mutexattr_init(&attr);
959 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
960 pthread_mutex_init(&m_underlyingMutex, &attr);
961 pthread_mutexattr_destroy(&attr);
962# elif ELPP_OS_WINDOWS
963 InitializeCriticalSection(&m_underlyingMutex);
964# endif // ELPP_OS_UNIX
965 }
966
967 virtual ~Mutex(void) {
968# if ELPP_OS_UNIX

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected