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