A synchronization primitive with weak mutual exclusion guarantees.
Declared in <llvm/Support/AdvisoryLock.h>
class AdvisoryLock;
Implementations of this interface may allow multiple threads/processes to acquire the ownership of the lock simultaneously. Typically, threads/processes waiting for the lock to be unlocked will validate that the computation was performed by the expected thread/process and re-run the computation if not.
| Name | Description |
|---|---|
~AdvisoryLock [destructor] [virtual] | Unlocks the lock if its ownership was previously acquired by tryLock(). |
tryLock [virtual] | Tries to acquire ownership of the lock without blocking. |
unsafeUnlock [virtual] | For a lock owned by someone else, unlock it. |
waitForUnlockFor [virtual] | For a lock owned by someone else, wait until it is unlocked. |
| Name | Description |
|---|---|
LockFileManager | Class that manages the creation of a lock file to aid implicit coordination between different processes. |