Mutex: Difference between revisions
Content added Content deleted
(→POSIX) |
m (→POSIX: if forgot) |
||
Line 105: | Line 105: | ||
<c>int success = pthread_mutex_unlock(&mutex);</c> |
<c>int success = pthread_mutex_unlock(&mutex);</c> |
||
Trying to lock (but do not wait it can't) |
Trying to lock (but do not wait if it can't) |
||
<c>int success = pthread_mutex_trylock(&mutex);</c> |
<c>int success = pthread_mutex_trylock(&mutex);</c> |