ChimeraTK-DeviceAccess
03.20.00
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
j
l
m
n
o
p
s
t
u
w
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
a
b
c
i
m
r
s
t
v
Enumerations
Enumerator
Related Symbols
a
c
d
e
l
m
n
o
r
s
t
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
g
i
l
m
o
p
r
s
t
Variables
Typedefs
Enumerations
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
DataConsistencyRealmStore.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Deutsches Elektronen-Synchrotron DESY, MSK, ChimeraTK Project <chimeratk-support@desy.de>
2
// SPDX-License-Identifier: LGPL-3.0-or-later
3
#pragma once
4
5
#include "
DataConsistencyRealm.h
"
6
7
#include <map>
8
#include <mutex>
9
#include <string>
10
11
namespace
ChimeraTK::async
{
12
13
/********************************************************************************************************************/
14
15
class
DataConsistencyRealmStore
{
16
public
:
17
static
DataConsistencyRealmStore
&
getInstance
() {
18
static
DataConsistencyRealmStore
instance;
19
return
instance;
20
}
17
static
DataConsistencyRealmStore
&
getInstance
() {
…
}
21
22
std::shared_ptr<DataConsistencyRealm>
getRealm
(
const
std::string& realmName);
23
24
private
:
25
DataConsistencyRealmStore
() =
default
;
26
~DataConsistencyRealmStore
() =
default
;
27
28
std::mutex _mapMutex;
29
std::map<std::string, std::weak_ptr<DataConsistencyRealm>> _realmMap;
30
};
15
class
DataConsistencyRealmStore
{
…
};
31
32
/********************************************************************************************************************/
33
34
}
// namespace ChimeraTK::async
DataConsistencyRealm.h
ChimeraTK::async::DataConsistencyRealmStore
Definition
DataConsistencyRealmStore.h:15
ChimeraTK::async::DataConsistencyRealmStore::getInstance
static DataConsistencyRealmStore & getInstance()
Definition
DataConsistencyRealmStore.h:17
ChimeraTK::async::DataConsistencyRealmStore::getRealm
std::shared_ptr< DataConsistencyRealm > getRealm(const std::string &realmName)
Definition
DataConsistencyRealmStore.cc:9
ChimeraTK::async
Definition
design_AsyncNDRegisterAcessor_and_NumericAddressedBackend.dox:1
sources
ChimeraTK-DeviceAccess
include
async
DataConsistencyRealmStore.h
Generated by
1.9.8