#include <NoLock.h>
Inheritance diagram for oasys::NoLock:
Note, however, that is_locked() and is_locked_by_me() will never actually return true.
Useful in cases where you want to decide at runtime whether or not to enable some locking code by either creating a real lock or this class, but then you don't have to update all the call sites with an if statement.
Definition at line 55 of file NoLock.h.
Public Member Functions | |
int | lock (const char *lock_user) |
Acquire the lock. | |
int | unlock () |
Release the lock. | |
int | try_lock (const char *lock_user) |
Try to acquire the lock. |
int oasys::NoLock::lock | ( | const char * | lock_user | ) | [virtual] |
int oasys::NoLock::unlock | ( | ) | [virtual] |
int oasys::NoLock::try_lock | ( | const char * | lock_user | ) | [virtual] |
Try to acquire the lock.
Implements oasys::Lock.