MutexLock
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
Mutex.c:64:
}
Mutex *MutexLock(Mutex *m) {
#ifdef _WIN32
EnterCriticalSection(&m->lock);- In
Log.c:145:
if (log_mutex) {
MutexLock(log_mutex);
}
Last updated on