Skip to content

MutexLock

Description

Acquire lock on provided mutex object.

Parameters

Name Direction Description
m in,out Mutex to lock.

Success

Returns locked mutex.

Failure

Returns NULL if locking fails.

Usage example (Cross-references)

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