WPILibC++  2019.1.1-beta-2-47-gd528a77
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
condition_variable.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <condition_variable>
11 
12 #include "wpi/priority_mutex.h"
13 
14 namespace wpi {
15 
16 #if defined(__linux__) && defined(WPI_HAVE_PRIORITY_MUTEX)
17 using condition_variable = ::std::condition_variable_any;
18 #else
19 using condition_variable = ::std::condition_variable;
20 #endif
21 
22 } // namespace wpi
WPILib C++ utilities (wpiutil) namespace.
Definition: SmallString.h:21