WPILibC++
2020.3.2
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
wpi
WPILib C++ utilities (wpiutil) namespace.
Definition:
EventLoopRunner.h:17
wpiutil
src
main
native
include
wpi
condition_variable.h
Generated on Fri Feb 21 2020 08:50:36 for WPILibC++ by
1.8.16