Unlocks this mutex. The inner mutex may not be unlocked if this mutex was acquired previously in the current thread. # Safety This method may only be called if the mutex is held by the current thread.
(&self)
| 79 | /// |
| 80 | /// This method may only be called if the mutex is held by the current thread. |
| 81 | pub unsafe fn unlock(&self) { |
| 82 | self.owner.store(0, Ordering::Relaxed); |
| 83 | unsafe { self.mutex.unlock() }; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | impl<R: RawMutex, G: GetThreadId> RawThreadMutex<R, G> { |
no test coverage detected