ledger-core
|
#include <Lock.hpp>
Public Member Functions | |
virtual void | lock ()=0 |
virtual bool | tryLock ()=0 |
virtual void | unlock ()=0 |
Class representing a lock, for thread safety purposes
|
pure virtual |
Acquire lock by thread calling this method, If Lock already acquired by another thread, execution of calling thread should be blocked until the other thread call the unlock method
|
pure virtual |
|
pure virtual |
Release Lock ownership by calling thread