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