YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
shared_mutex.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#if YACLIB_FAULT_SHARED_MUTEX == 2
4
5
# include <
yaclib/fault/detail/fiber/shared_mutex.hpp
>
6
# include <
yaclib/fault/detail/shared_mutex.hpp
>
7
8
namespace
yaclib_std
{
9
10
using
shared_mutex
=
yaclib::detail::SharedMutex<yaclib::detail::fiber::SharedMutex>
;
11
12
}
// namespace yaclib_std
13
#elif YACLIB_FAULT_SHARED_MUTEX == 1
14
# include <
yaclib/fault/detail/shared_mutex.hpp
>
15
16
# include <shared_mutex>
17
18
namespace
yaclib_std
{
19
20
using
shared_mutex
=
yaclib::detail::SharedMutex<std::shared_mutex>
;
21
22
}
// namespace yaclib_std
23
#else
24
# include <shared_mutex>
25
26
namespace
yaclib_std
{
27
28
using
shared_mutex
= std::shared_mutex;
29
30
}
// namespace yaclib_std
31
#endif
yaclib::detail::SharedMutex
Definition
shared_mutex.hpp:9
shared_mutex.hpp
shared_mutex.hpp
yaclib_std
Definition
coro.hpp:47
yaclib_std::shared_mutex
std::shared_mutex shared_mutex
Definition
shared_mutex.hpp:28
include
yaclib_std
detail
shared_mutex.hpp
Generated by
1.9.8