roo_threads
API Documentation for roo_threads
Loading...
Searching...
No Matches
condition_variable.h
Go to the documentation of this file.
1#pragma once
2
4
5#if (defined ROO_THREADS_USE_CPPSTD)
6
8
9namespace roo {
10
11/// @brief Result of timed condition-variable wait operations.
12using cv_status = ::roo_threads::cppstd::cv_status;
13/// @brief Condition variable used to block and wake waiting threads.
14using condition_variable = ::roo_threads::cppstd::condition_variable;
15
16} // namespace roo
17
18#elif (defined ROO_THREADS_USE_FREERTOS)
19
21
22namespace roo {
23
24/// @brief Result of timed condition-variable wait operations.
25using cv_status = ::roo_threads::freertos::cv_status;
26/// @brief Condition variable used to block and wake waiting threads.
27using condition_variable = ::roo_threads::freertos::condition_variable;
28
29} // namespace roo
30
31#elif (defined ROO_THREADS_USE_ROO_TESTING)
32
33#include "roo_threads/impl/roo_testing/condition_variable.h"
34
35namespace roo {
36
37/// @brief Result of timed condition-variable wait operations.
38using cv_status = ::roo_threads::roo_testing::cv_status;
39/// @brief Condition variable used to block and wake waiting threads.
40using condition_variable = ::roo_threads::roo_testing::condition_variable;
41
42} // namespace roo
43
44#elif (defined ROO_THREADS_SINGLETHREADED)
45
47
48namespace roo {
49
50/// @brief Result of timed condition-variable wait operations.
51using cv_status = ::roo_threads::singlethreaded::cv_status;
52/// @brief Condition variable used to block and wake waiting threads.
53using condition_variable = ::roo_threads::singlethreaded::condition_variable;
54
55} // namespace roo
56
57#endif
cv_status
Status returned from timed wait operations.
Definition latch.h:6