Unverified Commit bf447e27 authored by Med Ismail Bennani's avatar Med Ismail Bennani Committed by GitHub
Browse files

[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: default avatarMed Ismail Bennani <ismail@bennani.ma>
parent e98cb360
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment