MutexUnlock
Description
Release the lock. Wakes one waiter on the direct-syscall paths.
Success
Returns m (unlocked).
Failure
Doesn’t return – aborts on NULL.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Mutex.c:136:
}
Mutex *MutexUnlock(Mutex *m) {
if (!m) {
LOG_FATAL("MutexUnlock: NULL mutex");- In
Mutex.c:138:
Mutex *MutexUnlock(Mutex *m) {
if (!m) {
LOG_FATAL("MutexUnlock: NULL mutex");
}
#if PLATFORM_WINDOWS- In
Mutex.c:151:
}
#else
# error "MutexUnlock: unsupported platform/architecture (no direct-syscall path)"
#endif
return m;
Last updated on