libcoro  1.0
Coroutine support library for C++20

◆ try_acquire()

bool coro::mutex::try_acquire ( )
inlineprotected

tries to acquire

attempts to set _req to locked() if it has nullptr

Return values
truesuccess, acquired
falsefailed, lock is owned

Definition at line 131 of file mutex.h.

+ Here is the caller graph for this function: