| 73 | } |
| 74 | |
| 75 | void Mutex::unlock() |
| 76 | { |
| 77 | #if CROWN_PLATFORM_WINDOWS |
| 78 | LeaveCriticalSection(&_priv->cs); |
| 79 | #else |
| 80 | int err = pthread_mutex_unlock(&_priv->mutex); |
| 81 | CE_ASSERT(err == 0, "pthread_mutex_unlock: errno = %d", err); |
| 82 | CE_UNUSED(err); |
| 83 | #endif |
| 84 | } |
| 85 | |
| 86 | void *Mutex::native_handle() |
| 87 | { |