Mutex: Difference between revisions

m
→‎POSIX: if forgot
m (→‎POSIX: if forgot)
Line 105:
<c>int success = pthread_mutex_unlock(&mutex);</c>
 
Trying to lock (but do not wait if it can't)
 
<c>int success = pthread_mutex_trylock(&mutex);</c>