Kea: interprocess_sync_null.h Source File

| Kea 3.2.0-git

interprocess_sync_null.h
Go to the documentation of this file.
1// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef INTERPROCESS_SYNC_NULL_H
8#define INTERPROCESS_SYNC_NULL_H
9
10#include <log/interprocess/interprocess_sync.h>
11
12namespace isc {
13namespace log {
14namespace interprocess {
15
21 class InterprocessSyncNull : public InterprocessSync {
22public:
30 InterprocessSyncNull(const std::string& task_name) :
31 InterprocessSync(task_name)
32 {}
33
35 virtual ~InterprocessSyncNull();
36
37protected:
41 bool lock();
42
46 bool tryLock();
47
51 bool unlock();
52};
53
54} // namespace interprocess
55} // namespace log
56} // namespace isc
57
58#endif // INTERPROCESS_SYNC_NULL_H
isc::log::interprocess::InterprocessSyncNull::tryLock
bool tryLock()
Try to acquire a lock (doesn't block).
Definition interprocess_sync_null.cc:25
isc::log::interprocess::InterprocessSyncNull::InterprocessSyncNull
InterprocessSyncNull(const std::string &task_name)
Constructor.
Definition interprocess_sync_null.h:30
isc::log::interprocess::InterprocessSyncNull::~InterprocessSyncNull
virtual ~InterprocessSyncNull()
Destructor.
Definition interprocess_sync_null.cc:15
isc::log::interprocess::InterprocessSyncNull::lock
bool lock()
Acquire the lock (never blocks).
Definition interprocess_sync_null.cc:19
isc::log::interprocess::InterprocessSyncNull::unlock
bool unlock()
Release the lock.
Definition interprocess_sync_null.cc:31
isc::log::interprocess::InterprocessSync::InterprocessSync
InterprocessSync(const std::string &task_name)
Constructor.
Definition interprocess_sync.h:52
interprocess_sync.h
isc::log::interprocess
Definition log/logger.h:25
isc::log
Definition buffer_appender_impl.cc:17
isc
Defines the logger used by the top-level component of kea-lfc.
Definition check_exists_add.cc:18