mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
artf4149: Removed references to VxWorks
Implemented setTaskPriority() and getTaskPriority() in Task HAL API Removed all other unimplemented functions in HAL and removed spawnTask() Replaced instances of pthread_t* with TASK typedef Removed unused HAL error constants and removed commented-out classes and functions in wpilibj's HALLibrary Changed Task class API to match the construction semantics of a std::thread Change-Id: I3bc951a3da90d24c5589fae4d1ca2bb60225c873
This commit is contained in:
committed by
James Kuszmaul
parent
5712565068
commit
fd4c169658
@@ -19,19 +19,6 @@
|
||||
#include <cxxabi.h>
|
||||
#include "nivision.h"
|
||||
|
||||
static bool suspendOnAssertEnabled = false;
|
||||
|
||||
/**
|
||||
* Enable suspend on assert.
|
||||
* If enabled, the user task will be suspended whenever an assert fails. This
|
||||
* will allow the user to attach to the task with the debugger and examine
|
||||
* variables
|
||||
* around the failure.
|
||||
*/
|
||||
void wpi_suspendOnAssertEnabled(bool enabled) {
|
||||
suspendOnAssertEnabled = enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert implementation.
|
||||
* This allows breakpoints to be set on an assert.
|
||||
@@ -61,8 +48,6 @@ bool wpi_assert_impl(bool conditionValue, const char *conditionText,
|
||||
// Print the error and send it to the DriverStation
|
||||
std::cout << error << std::endl;
|
||||
HALSetErrorData(error.c_str(), error.size(), 100);
|
||||
|
||||
if (suspendOnAssertEnabled) suspendTask(nullptr);
|
||||
}
|
||||
|
||||
return conditionValue;
|
||||
@@ -98,8 +83,6 @@ void wpi_assertEqual_common_impl(const char *valueA, const char *valueB,
|
||||
// Print the error and send it to the DriverStation
|
||||
std::cout << error << std::endl;
|
||||
HALSetErrorData(error.c_str(), error.size(), 100);
|
||||
|
||||
if (suspendOnAssertEnabled) suspendTask(nullptr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user