| 59 | } |
| 60 | |
| 61 | MutexImpl::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 | |
| 74 | MutexImpl::~MutexImpl() |
| 75 | { |
nothing calls this directly
no test coverage detected