MutexLock
Description
Acquire the lock. Blocks until the lock is available.
Success
Returns m (locked).
Failure
Doesn’t return – aborts on NULL.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Mutex.c:96:
}
Mutex *MutexLock(Mutex *m) {
if (!m) {
LOG_FATAL("MutexLock: NULL mutex");- In
Mutex.c:98:
Mutex *MutexLock(Mutex *m) {
if (!m) {
LOG_FATAL("MutexLock: NULL mutex");
}
#if PLATFORM_WINDOWS- In
Mutex.c:131:
}
#else
# error "MutexLock: unsupported platform/architecture (no direct-syscall path)"
#endif
return m;
Last updated on