WPILibC++  2019.2.1-1-g453a904
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
mutex.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 <mutex>
11 
12 #include "priority_mutex.h"
13 
14 namespace wpi {
15 
16 #ifdef WPI_HAVE_PRIORITY_MUTEX
17 using mutex = priority_mutex;
18 using recursive_mutex = priority_recursive_mutex;
19 #else
20 using mutex = ::std::mutex;
21 using recursive_mutex = ::std::recursive_mutex;
22 #endif
23 
24 } // namespace wpi
WPILib C++ utilities (wpiutil) namespace.
Definition: SmallString.h:21