| 88 | } |
| 89 | |
| 90 | bool MutexImpl::trylock() |
| 91 | { |
| 92 | bool success = !pthread_mutex_trylock(&getMutex(this)->lock); |
| 93 | #if PX_DEBUG |
| 94 | if(success) |
| 95 | getMutex(this)->owner = Thread::getId(); |
| 96 | #endif |
| 97 | return success; |
| 98 | } |
| 99 | |
| 100 | void MutexImpl::unlock() |
| 101 | { |
no test coverage detected