Kea
1.5.0
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
12
namespace
isc
{
13
namespace
log {
14
namespace
interprocess {
15
21
class
InterprocessSyncNull
:
public
InterprocessSync
{
22
public
:
30
InterprocessSyncNull
(
const
std::string& task_name) :
31
InterprocessSync
(task_name)
32
{}
33
35
virtual
~InterprocessSyncNull
();
36
37
protected
:
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::InterprocessSync
Interprocess Sync Class.
Definition:
interprocess_sync.h:38
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
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition:
agent_parser.cc:144
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
interprocess_sync.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
Null Interprocess Sync Class.
Definition:
interprocess_sync_null.h:21
src
lib
log
interprocess
interprocess_sync_null.h
Generated on Fri Jul 10 2020 09:12:51 for Kea by
1.8.18