WPILibC++
2025.2.1
Loading...
Searching...
No Matches
mutex.h
Go to the documentation of this file.
1
// Copyright (c) FIRST and other WPILib contributors.
2
// Open Source Software; you can modify and/or share it under the terms of
3
// the WPILib BSD license file in the root directory of this project.
4
5
#pragma once
6
7
#include <mutex>
8
9
#include "
wpi/priority_mutex.h
"
10
11
namespace
wpi
{
12
13
#ifdef WPI_HAVE_PRIORITY_MUTEX
14
using
mutex
= priority_mutex;
15
using
recursive_mutex
= priority_recursive_mutex;
16
#else
17
using
mutex
= ::std::mutex;
18
using
recursive_mutex
= ::std::recursive_mutex;
19
#endif
20
21
}
// namespace wpi
wpi
Foonathan namespace.
Definition
ntcore_cpp.h:26
wpi::recursive_mutex
::std::recursive_mutex recursive_mutex
Definition
mutex.h:18
wpi::mutex
::std::mutex mutex
Definition
mutex.h:17
priority_mutex.h
wpi
mutex.h
Generated on Fri Jan 10 2025 07:37:20 for WPILibC++ by
1.12.0