Skip to content
SysMutexDestroy

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)

Usage examples (Cross-references)
    
        if (log_mutex) {
            SysMutexDestroy(log_mutex);
        }
    }
    
    void free_log_mutex(void) {
        SysMutexDestroy(log_mutex);
    }
    }
    
    void SysMutexDestroy(SysMutex *m) {
    #ifdef _WIN32
        DeleteCriticalSection(&m->lock);
Last updated on