MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / recursive_mutex

Method recursive_mutex

src/tinythread/tinythread.h:256–266  ·  view source on GitHub ↗

Constructor.

Source from the content-addressed store, hash-verified

254 public:
255 /// Constructor.
256 recursive_mutex()
257 {
258#if defined(_TTHREAD_WIN32_)
259 InitializeCriticalSection(&mHandle);
260#else
261 pthread_mutexattr_t attr;
262 pthread_mutexattr_init(&attr);
263 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
264 pthread_mutex_init(&mHandle, &attr);
265#endif
266 }
267
268 /// Destructor.
269 ~recursive_mutex()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected