helics  3.3.0
GuardedTypes.hpp
1 /*
2 Copyright (c) 2017-2022,
3 Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
4 Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
5 SPDX-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/ordered_guarded.hpp"
12 #include "gmlc/libguarded/shared_guarded.hpp"
13 //#include "gmlc/libguarded/staged_guarded.hpp"
14 
15 template<class T>
16 using guarded = gmlc::libguarded::guarded<T>;
17 
18 template<class T>
19 using atomic_guarded = gmlc::libguarded::atomic_guarded<T>;
20 
21 template<class T>
23 
24 template<class T>
25 using ordered_guarded_m = gmlc::libguarded::ordered_guarded<T, std::mutex>;
26 
27 template<class T>
29 
30 template<class T>
31 using ordered_guarded = gmlc::libguarded::ordered_guarded<T, std::shared_mutex>;
gmlc::libguarded::shared_guarded
Definition: application_api/Federate.hpp:28