| 78 | /// implementation of rw mutex |
| 79 | |
| 80 | bool skr_init_rw_mutex(SRWMutex* pMutex) |
| 81 | { |
| 82 | pMutex->mSpinCount = MUTEX_DEFAULT_SPIN_COUNT; |
| 83 | int err = pthread_rwlock_init(&pMutex->pHandle, NULL); |
| 84 | SKR_ASSERT(err == 0 && "RWMutex::Init: failed to initialize the rw lock"); |
| 85 | return err == 0; |
| 86 | } |
| 87 | |
| 88 | void skr_destroy_rw_mutex(SRWMutex* pMutex) |
| 89 | { |
no outgoing calls
no test coverage detected