SysMutexCreate
SysMutexCreate
Description
Create a platform-independent mutex object.
Success
Returns valid SysMutex object.
Failure
Returns NULL if mutex creation fails.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Log.c:126:
// Initialize the mutex if not already
if (!log_mutex) {
log_mutex = SysMutexCreate();
atexit(free_log_mutex);
}- In
Mutex.c:30:
};
SysMutex *SysMutexCreate(void) {
SysMutex *m = NEW(SysMutex);
#ifdef _WIN32
Last updated on