SysMutexDestroy
- Function
- October 8, 2025
Table of Contents
SysMutexDestroy
SysMutexDestroy
Description
Destroy the provided mutex object. Once a mutex is destroyed, all resources held by it will be freed. Using it after this cal is UB.
Parameters
Name | Direction | Description |
---|---|---|
m | in | Mutex object to be destroyed. |
Success
Resources released.
Failure
Function cannot fail - safe to call with NULL.
Usage example (Cross-references)
- In
Log.c:103
:
if (log_mutex) {
SysMutexDestroy(log_mutex);
}
}
- In
Log.c:108
:
void free_log_mutex(void) {
SysMutexDestroy(log_mutex);
}
- In
Mutex.c:40
:
}
void SysMutexDestroy(SysMutex *m) {
#ifdef _WIN32
DeleteCriticalSection(&m->lock);