Kea  1.5.0
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 
10 
11 namespace isc {
12 namespace log {
13 namespace interprocess {
14 
16 }
17 
18 bool
20  is_locked_ = true;
21  return (true);
22 }
23 
24 bool
26  is_locked_ = true;
27  return (true);
28 }
29 
30 bool
32  is_locked_ = false;
33  return (true);
34 }
35 
36 } // namespace interprocess
37 } // namespace log
38 } // namespace isc
isc::log::interprocess::InterprocessSync::is_locked_
bool is_locked_
Is the lock taken?
Definition: interprocess_sync.h:77
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
virtual ~InterprocessSyncNull()
Destructor.
Definition: interprocess_sync_null.cc:15
isc::log::interprocess::InterprocessSyncNull::tryLock
bool tryLock()
Try to acquire a lock (doesn't block)
Definition: interprocess_sync_null.cc:25
interprocess_sync_null.h