Kea  1.9.9-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 
11 
12 namespace isc {
13 namespace log {
14 namespace interprocess {
15 
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
InterprocessSyncNull(const std::string &task_name)
Constructor.
bool lock()
Acquire the lock (never blocks)
Defines the logger used by the top-level component of kea-dhcp-ddns.
bool tryLock()
Try to acquire a lock (doesn't block)