Skip to content

MutexUnlock

Description

Release lock on provided mutex object.

Parameters

Name Direction Description
m in,out Mutex to unlock.

Success

Returns unlocked mutex.

Failure

Returns NULL if unlocking fails.

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    Mutex *MutexUnlock(Mutex *m) {
    #ifdef _WIN32
        LeaveCriticalSection(&m->lock);
    
        if (log_mutex) {
            MutexUnlock(log_mutex);
        }
    }
Last updated on