Skip to content

MutexLock

Description

Acquire the lock. Blocks until the lock is available.

Success

Returns m (locked).

Failure

Doesn’t return – aborts on NULL.

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    Mutex *MutexLock(Mutex *m) {
        if (!m) {
            LOG_FATAL("MutexLock: NULL mutex");
    Mutex *MutexLock(Mutex *m) {
        if (!m) {
            LOG_FATAL("MutexLock: NULL mutex");
        }
    #if PLATFORM_WINDOWS
        }
    #else
    #    error "MutexLock: unsupported platform/architecture (no direct-syscall path)"
    #endif
        return m;
Last updated on