[llvm/Support] Make `llvm::sys::RWMutex` Lockable (#90667)
This patch extends the `llvm::sys::RWMutex` class to fullfill the
`Lockable` requirement to include attempted locking, by implementing a
`bool try_lock` member function.
As the name suggests, this method will try to acquire to lock in a
non-blocking fashion and release it immediately. If it managed to
acquire the lock, returns `true`, otherwise returns `false`.
Signed-off-by:
Med Ismail Bennani <ismail@bennani.ma>
parent
e98cb360
Please register or sign in to comment