Tries to acquire ownership of the lock without blocking.
Declared in <llvm/Support/AdvisoryLock.h>
<llvm/Support/AdvisoryLock.h>
virtual Expected<bool> tryLock() = 0;
true if ownership of the lock was acquired successfully, false if the lock is already owned by someone else, or Error in case of an unexpected failure.
Error