Skip to content

MutexUnlock

Description

Release the lock. Wakes one waiter on the direct-syscall paths.

Success

Returns m (unlocked).

Failure

Doesn’t return – aborts on NULL.

Usage example (Cross-references)

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