chsvlib
chsv helper source code

◆ try_lock_shared()

bool try_lock_shared ( )

Tries to gain shared ownership of the mutex and returns false, if another thread already owns the mutex, exclusively or not.

Returns
True, if the ownership is succesfully acquired or false otherwise.