| 98 | } |
| 99 | |
| 100 | void MutexImpl::unlock() |
| 101 | { |
| 102 | #if PX_DEBUG |
| 103 | if(getMutex(this)->owner != Thread::getId()) |
| 104 | { |
| 105 | shdfnd::getFoundation().error(PxErrorCode::eINVALID_OPERATION, __FILE__, __LINE__, |
| 106 | "Mutex must be unlocked only by thread that has already acquired lock"); |
| 107 | return; |
| 108 | } |
| 109 | #endif |
| 110 | |
| 111 | int err = pthread_mutex_unlock(&getMutex(this)->lock); |
| 112 | PX_ASSERT(!err); |
| 113 | PX_UNUSED(err); |
| 114 | } |
| 115 | |
| 116 | uint32_t MutexImpl::getSize() |
| 117 | { |
no test coverage detected