mn::basic_null_lock Class Reference

Null Lock is a lock object without any lock logic. More...

#include <mn_null_lock.hpp>

+ Inheritance diagram for mn::basic_null_lock:
+ Collaboration diagram for mn::basic_null_lock:

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)
 
- Public Member Functions inherited from mn::ILockObject
 ILockObject ()
 
virtual bool try_lock ()
 
virtual bool is_locked () const =0
 Is locked? More...
 

Additional Inherited Members

- Public Types inherited from mn::ILockObject
using this_type = ILockObject
 

Detailed Description

Null Lock is a lock object without any lock logic.

Constructor & Destructor Documentation

◆ basic_null_lock()

mn::basic_null_lock::basic_null_lock ( )
inline

Member Function Documentation

◆ is_initialized()

virtual bool mn::basic_null_lock::is_initialized ( ) const
inlinevirtual

Is the ILockObject created (initialized) ?

Returns
true if the ILockObject created (initialized) and false when not

Implements mn::ILockObject.

◆ lock()

virtual int mn::basic_null_lock::lock ( unsigned int  timeout = 0)
inlinevirtual

lock (take) a LokObject

Parameters
timeoutHow long to wait to get the Lock until giving up.

Implements mn::ILockObject.

◆ time_lock()

virtual int mn::basic_null_lock::time_lock ( const struct timespec *  timeout)
inlinevirtual

Implements mn::ILockObject.

◆ unlock()

virtual int mn::basic_null_lock::unlock ( )
inlinevirtual

unlock (give) a semaphore.

Implements mn::ILockObject.


The documentation for this class was generated from the following file: