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)

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

Share :

Related Posts

BitVecShrinkToFit

BitVecShrinkToFit Description Reduce bitvector capacity to match its current length. Frees any unused memory allocated beyond the current length.

Read More

IterPeekAt

IterPeekAt Description Peek (not read) object from memory iter, given that - Provided Iter object is not NULL_ITER(mi). - There’s space left to read. - Length of object data is being read into is an integral multiple of size of data type this memory iter is iterating over. This is different from reading because it does not change current read position. This is good for making some decisions over data without changing the read position.

Read More

IterPos

IterPos Description If there’s space left to read in memory region we’re iterating over, then return a pointer to current read position.

Read More