Logo Search packages:      
Sourcecode: csound version File versions  Download package

PUBLIC void* csoundCreateMutex ( int  isRecursive )

Creates and returns a mutex object, or NULL if not successful. Mutexes can be faster than the more general purpose monitor objects returned by csoundCreateThreadLock() on some platforms, and can also be recursive, but the result of unlocking a mutex that is owned by another thread or is not locked is undefined. If 'isRecursive' is non-zero, the mutex can be re-locked multiple times by the same thread, requiring an equal number of unlock calls; otherwise, attempting to re-lock the mutex results in undefined behavior. Note: the handles returned by csoundCreateThreadLock() and csoundCreateMutex() are not compatible.

Definition at line 599 of file threads.c.

References csoundCreateMutex().

Referenced by csoundCreateMutex().

    return NULL;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index