mn::basic_null_lock Class Reference
Null Lock is a lock object without any lock logic. More...
#include <mn_null_lock.hpp>


Public Member Functions | |
basic_null_lock () | |
virtual int | lock (unsigned int timeout=0) |
virtual int | unlock () |
virtual bool | is_initialized () const |
virtual int | time_lock (const struct timespec *timeout) |
![]() | |
ILockObject () | |
virtual bool | try_lock () |
virtual bool | is_locked () const =0 |
Is locked? More... | |
Additional Inherited Members | |
![]() | |
using | this_type = ILockObject |
Detailed Description
Null Lock is a lock object without any lock logic.
Constructor & Destructor Documentation
◆ basic_null_lock()
|
inline |
Member Function Documentation
◆ is_initialized()
|
inlinevirtual |
Is the ILockObject created (initialized) ?
- Returns
- true if the ILockObject created (initialized) and false when not
Implements mn::ILockObject.
◆ lock()
|
inlinevirtual |
lock (take) a LokObject
- Parameters
-
timeout How long to wait to get the Lock until giving up.
Implements mn::ILockObject.
◆ time_lock()
|
inlinevirtual |
Implements mn::ILockObject.
◆ unlock()
|
inlinevirtual |
unlock (give) a semaphore.
Implements mn::ILockObject.
The documentation for this class was generated from the following file: