MutexDeinit
Description
Tear down a mutex. The kernel holds no per-mutex resource on either backend (SRWLOCK has no destroy; futex/__ulock are just addresses watched on demand), so the call only zeroes the struct.
Success
Returns to the caller. *m is zeroed.
Failure
Function cannot fail. NULL m is a no-op.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Mutex.c:82:
#endif
void MutexDeinit(Mutex *m) {
if (!m) {
return;- In
Mutex.c:91:
// futex/ulock int has no destroy call; zeroing happens below.
#else
# error "MutexDeinit: unsupported platform/architecture (no direct-syscall path)"
#endif
MemSet(m, 0, sizeof(Mutex));
Last updated on