libcoro  1.0
Coroutine support library for C++20

◆ try_lock()

ownership coro::mutex::try_lock ( )
inline

try to lock

Returns
ownership. If the function fails, the ownership is not given. You need to convert ownership to bool and test it.

Definition at line 81 of file mutex.h.