SysMutexDestroy

Table of Contents

SysMutexDestroy

Description

Destroy the provided mutex object. Once a mutex is destroyed, all resources held by it will be freed. Using it after this cal is UB.

Parameters

NameDirectionDescription
minMutex object to be destroyed.

Success

Resources released.

Failure

Function cannot fail - safe to call with NULL.

Usage example (Cross-references)

    }
    
    void SysMutexDestroy(SysMutex* m) {
    #ifdef _WIN32
    DeleteCriticalSection(&m->lock);
    
    if (log_mutex) {
    SysMutexDestroy(log_mutex);
    }
    }

Share :

Related Posts

SysGetDirContents

SysGetDirContents Description Read directory contents into a vector. Current contents of the vector will be cleared out.

Read More

ALIGN_DOWN

ALIGN_DOWN Description Aligns the given value down to the nearest multiple of alignment.

Read More

SysGetFileSize

SysGetFileSize Description Get size of file without opening it.

Read More