Files
clang-p2996/llvm/lib/Support/RWMutex.cpp
Med Ismail Bennani bf447e27d2 [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>
2024-05-01 15:32:36 -07:00

3.9 KiB