Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
freeopcua
include
opc
spdlog
details
null_mutex.h
Go to the documentation of this file.
1
//
2
// Copyright(c) 2015 Gabi Melman.
3
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
4
//
5
6
#pragma once
7
8
#include <atomic>
9
// null, no cost dummy "mutex" and dummy "atomic" int
10
11
namespace
spdlog
12
{
13
namespace
details
14
{
15
struct
null_mutex
16
{
17
void
lock
() {}
18
void
unlock
() {}
19
bool
try_lock
()
20
{
21
return
true
;
22
}
23
};
24
25
struct
null_atomic_int
26
{
27
int
value
;
28
null_atomic_int
() =
default
;
29
30
null_atomic_int
(
int
val):value(val)
31
{}
32
33
int
load
(std::memory_order)
const
34
{
35
return
value;
36
}
37
38
void
store
(
int
val)
39
{
40
value = val;
41
}
42
};
43
44
}
45
}
spdlog::details::null_atomic_int::load
int load(std::memory_order) const
Definition:
null_mutex.h:33
spdlog::details::null_atomic_int::null_atomic_int
null_atomic_int(int val)
Definition:
null_mutex.h:30
spdlog::details::null_mutex::try_lock
bool try_lock()
Definition:
null_mutex.h:19
spdlog
Definition:
async_logger.h:26
spdlog::details::null_atomic_int
Definition:
null_mutex.h:25
spdlog::details::null_atomic_int::value
int value
Definition:
null_mutex.h:27
spdlog::details::null_atomic_int::store
void store(int val)
Definition:
null_mutex.h:38
spdlog::details::null_mutex
Definition:
null_mutex.h:15
spdlog::details::null_mutex::lock
void lock()
Definition:
null_mutex.h:17
spdlog::details::null_mutex::unlock
void unlock()
Definition:
null_mutex.h:18
ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:07