Kea
2.7.5
interprocess_sync_null.cc
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
#include <config.h>
8
9
#include <
log/interprocess/interprocess_sync_null.h
>
10
11
namespace
isc
{
12
namespace
log {
13
namespace
interprocess {
14
15
InterprocessSyncNull::~InterprocessSyncNull
() {
16
}
17
18
bool
19
InterprocessSyncNull::lock
() {
20
is_locked_
=
true
;
21
return
(
true
);
22
}
23
24
bool
25
InterprocessSyncNull::tryLock
() {
26
is_locked_
=
true
;
27
return
(
true
);
28
}
29
30
bool
31
InterprocessSyncNull::unlock
() {
32
is_locked_
=
false
;
33
return
(
true
);
34
}
35
36
}
// namespace interprocess
37
}
// namespace log
38
}
// namespace isc
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
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::is_locked_
bool is_locked_
Is the lock taken?
Definition
interprocess_sync.h:77
interprocess_sync_null.h
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
src
lib
log
interprocess
interprocess_sync_null.cc
Generated on Fri Dec 6 2024 19:51:38 for Kea by
1.10.0