chsvlib
chsv helper source code

◆ try_lock()

bool try_lock ( )

Tries to gain exclusive 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.