SysMutexLock
SysMutexLock
Description
Acquire lock on provided mutex object.
Parameters
| Name | Direction | Description |
|---|---|---|
m |
in,out | Mutex to lock. |
Success
Returns locked mutex.
Failure
Returns NULL if locking fails.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Log.c:146:
}
SysMutexLock(log_mutex);
// Print the log prefix to stderr
- In
Mutex.c:50:
}
SysMutex *SysMutexLock(SysMutex *m) {
#ifdef _WIN32
EnterCriticalSection(&m->lock);
Last updated on