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