llvm::AdvisoryLock::tryLock

Tries to acquire ownership of the lock without blocking.

Synopsis

Declared in <llvm/Support/AdvisoryLock.h>

virtual
Expected<bool>
tryLock() = 0;

Return Value

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.