![]() |
Kea 3.0.0
|
Null Interprocess Sync Class. More...
#include <interprocess_sync_null.h>
Public Member Functions | |
| InterprocessSyncNull (const std::string &task_name) | |
| Constructor. | |
| virtual | ~InterprocessSyncNull () |
| Destructor. | |
| Public Member Functions inherited from isc::log::interprocess::InterprocessSync | |
| InterprocessSync (const std::string &task_name) | |
| Constructor. | |
| virtual | ~InterprocessSync () |
| Destructor. | |
Protected Member Functions | |
| bool | lock () |
| Acquire the lock (never blocks) | |
| bool | tryLock () |
| Try to acquire a lock (doesn't block) | |
| bool | unlock () |
| Release the lock. | |
Additional Inherited Members | |
| Protected Attributes inherited from isc::log::interprocess::InterprocessSync | |
| bool | is_locked_ |
| Is the lock taken? | |
| const std::string | task_name_ |
| The task name. | |
Null Interprocess Sync Class.
This class specifies a concrete implementation for a null (no effect) interprocess synchronization mechanism. Please see the InterprocessSync class documentation for usage.
Definition at line 21 of file interprocess_sync_null.h.
|
inline |
Constructor.
Creates a null interprocess synchronization object
| task_name | Name of the synchronization task. This has to be identical among the various processes that need to be synchronized for the same task. |
Definition at line 30 of file interprocess_sync_null.h.
References isc::log::interprocess::InterprocessSync::InterprocessSync().
|
virtual |
Destructor.
Definition at line 15 of file interprocess_sync_null.cc.
|
protectedvirtual |
Acquire the lock (never blocks)
Implements isc::log::interprocess::InterprocessSync.
Definition at line 19 of file interprocess_sync_null.cc.
References isc::log::interprocess::InterprocessSync::is_locked_.
|
protectedvirtual |
Try to acquire a lock (doesn't block)
Implements isc::log::interprocess::InterprocessSync.
Definition at line 25 of file interprocess_sync_null.cc.
References isc::log::interprocess::InterprocessSync::is_locked_.
|
protectedvirtual |
Release the lock.
Implements isc::log::interprocess::InterprocessSync.
Definition at line 31 of file interprocess_sync_null.cc.
References isc::log::interprocess::InterprocessSync::is_locked_.