Skip to content

MutexDeinit

Description

Tear down a mutex. On Windows / direct-syscall paths the kernel has no per-mutex resources; the call zeroes the struct. On the pthread fallback path, pthread_mutex_destroy releases the underlying kernel resource.

Success

Function returns; struct is uninitialised.

Failure

No-op for NULL.

Usage example (Cross-references)

Usage examples (Cross-references)
    #endif
    
    void MutexDeinit(Mutex *m) {
        if (!m) {
            return;
Last updated on