| 84 | } |
| 85 | |
| 86 | void MutexImpl::unlock() |
| 87 | { |
| 88 | #if PX_DEBUG |
| 89 | // ensure we are already holding the lock |
| 90 | if(getMutex(this)->mOwner != Thread::getId()) |
| 91 | { |
| 92 | shdfnd::getFoundation().error(PxErrorCode::eINVALID_OPERATION, __FILE__, __LINE__, |
| 93 | "Mutex must be unlocked only by thread that has already acquired lock"); |
| 94 | return; |
| 95 | } |
| 96 | |
| 97 | #endif |
| 98 | |
| 99 | LeaveCriticalSection(&getMutex(this)->mLock); |
| 100 | } |
| 101 | |
| 102 | uint32_t MutexImpl::getSize() |
| 103 | { |
no test coverage detected