MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / MutexImpl

Method MutexImpl

deps/physx/physx/source/foundation/src/unix/PsUnixMutex.cpp:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61MutexImpl::MutexImpl()
62{
63 pthread_mutexattr_t attr;
64 pthread_mutexattr_init(&attr);
65 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
66#if !PX_ANDROID
67 // mimic default windows behavior where applicable
68 pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT);
69#endif
70 pthread_mutex_init(&getMutex(this)->lock, &attr);
71 pthread_mutexattr_destroy(&attr);
72}
73
74MutexImpl::~MutexImpl()
75{

Callers

nothing calls this directly

Calls 1

getMutexFunction · 0.70

Tested by

no test coverage detected