mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Only use priority_mutex on RoboRIO by default. (#1172)
On all Linux platforms it can be specifically requested by defining WPI_USE_PRIORITY_MUTEX.
This commit is contained in:
@@ -16,7 +16,11 @@
|
||||
|
||||
namespace wpi {
|
||||
|
||||
#ifdef __linux__
|
||||
#if defined(__FRC_ROBORIO__) && !defined(WPI_USE_PRIORITY_MUTEX)
|
||||
#define WPI_USE_PRIORITY_MUTEX
|
||||
#endif
|
||||
|
||||
#if defined(WPI_USE_PRIORITY_MUTEX) && defined(__linux__)
|
||||
|
||||
#define WPI_HAVE_PRIORITY_MUTEX 1
|
||||
|
||||
@@ -79,6 +83,6 @@ class priority_mutex {
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // __linux__
|
||||
#endif // defined(WPI_USE_PRIORITY_MUTEX) && defined(__linux__)
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
Reference in New Issue
Block a user