mn::system::ISystemLockObject Class Reference
#include <mn_system_lock.hpp>
Inheritance diagram for mn::system::ISystemLockObject:
Collaboration diagram for mn::system::ISystemLockObject:
Public Member Functions | |
virtual int | time_lock (const struct timespec *timeout) |
virtual bool | is_initialized () |
Public Member Functions inherited from mn::ILockObject | |
ILockObject () | |
virtual int | lock (unsigned int timeout=0)=0 |
virtual int | unlock ()=0 |
virtual bool | try_lock () |
virtual bool | is_initialized () const =0 |
virtual bool | is_locked () const =0 |
Is locked? More... | |
Additional Inherited Members | |
Public Types inherited from mn::ILockObject | |
using | this_type = ILockObject |
Detailed Description
Interface for all system lock types in this library This is an abstract mixed base class. To use this, you need to subclass it. All of your SystemLockObject should be derived from the ISystemLockObject class. Then implement the virtual lock, unlock functions, from the base class ILockObject, the function virtual time_lock, implemented this class
Member Function Documentation
◆ is_initialized()
|
inlinevirtual |
Is the SystemLockObject (initialized) ?
- Returns
- Always true
◆ time_lock()
|
inlinevirtual |
call lock()
- See also
- lock()
Implements mn::ILockObject.
Reimplemented in mn::system::basic_critical_section_timedout.
The documentation for this class was generated from the following file: