mtx_trylock
From cppreference.com
Defined in header
<threads.h>
|
||
int mtx_trylock( mtx_t *mutex );
|
(since C11) | |
Tries to lock the mutex pointed to by mutex
without blocking.
[edit] Parameters
mutex | - | pointer to the mutex to lock |
[edit] Return value
thrd_success if successful, thrd_busy if the mutex has already been locked, thrd_error if an error occurrs.
[edit] See also
(C11)
|
blocks until locks a mutex (function) |
(C11)
|
blocks until locks a mutex or times out (function) |
(C11)
|
unlocks a mutex (function) |