helics 3.7.0
Loading...
Searching...
No Matches
GuardedTypes.hpp
1/*
2Copyright (c) 2017-2026,
3Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Energy
4Innovation LLC. See the top-level NOTICE for additional details. All rights reserved.
5SPDX-License-Identifier: BSD-3-Clause
6*/
7#pragma once
8
9#include "gmlc/libguarded/atomic_guarded.hpp"
10#include "gmlc/libguarded/guarded.hpp"
11#include "gmlc/libguarded/guarded_opt.hpp"
12#include "gmlc/libguarded/ordered_guarded.hpp"
13#include "gmlc/libguarded/shared_guarded.hpp"
14#include "gmlc/libguarded/shared_guarded_opt.hpp"
15
16// #include "gmlc/libguarded/staged_guarded.hpp"
17
18template<class T>
19using guarded = gmlc::libguarded::guarded<T>;
20
21template<class T>
22using guarded_opt = gmlc::libguarded::guarded_opt<T>;
23
24template<class T>
25using atomic_guarded = gmlc::libguarded::atomic_guarded<T>;
26
27template<class T>
29
30template<class T>
31using shared_guarded_m_opt = gmlc::libguarded::shared_guarded_opt<T, std::mutex>;
32
33template<class T>
34using ordered_guarded_m = gmlc::libguarded::ordered_guarded<T, std::mutex>;
35
36template<class T>
38
39template<class T>
40using shared_guarded_opt = gmlc::libguarded::shared_guarded_opt<T, std::shared_mutex>;
41
42template<class T>
43using ordered_guarded = gmlc::libguarded::ordered_guarded<T, std::shared_mutex>;
Definition application_api/Federate.hpp:27