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#ifdef ROO_THREADS_USE_FREERTOS
6
8
9#if ROO_THREADS_FREERTOS_USE_OPTIMIZED_CONDITION_VARIABLE
10
12namespace roo_threads {
13/// @brief Backend namespace using FreeRTOS synchronization primitives.
14namespace freertos {
15
16/// @ingroup roo_threads_api_condition_variable
17/// @brief FreeRTOS optimized backend implementation of
18/// `roo::condition_variable`.
19/// @copydoc roo_threads::doc::condition_variable
20using condition_variable = condition_variable_opt;
21
22} // namespace freertos
23} // namespace roo_threads
24
25#else
26
28namespace roo_threads {
29/// @brief Backend namespace using FreeRTOS synchronization primitives.
30namespace freertos {
31/// @ingroup roo_threads_api_condition_variable
32/// @brief FreeRTOS classic backend implementation of `roo::condition_variable`.
33/// @copydoc roo_threads::doc::condition_variable
34using condition_variable = condition_variable_classic;
35
36} // namespace freertos
37} // namespace roo_threads
38
39#endif
40
41#endif // ROO_THREADS_USE_FREERTOS