mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Removes the task class from wpilib (#314)
Was required back on the cRIO, but there are much better alternatives nowadays.
This commit is contained in:
committed by
Peter Johnson
parent
bc492bb40e
commit
9bbdaf300b
@@ -11,6 +11,7 @@
|
||||
|
||||
#include "AnalogInput.h"
|
||||
#include "FRC_NetworkCommunication/FRCComm.h"
|
||||
#include "HAL/HAL.h"
|
||||
#include "HAL/cpp/Log.h"
|
||||
#include "MotorSafetyHelper.h"
|
||||
#include "Timer.h"
|
||||
@@ -23,7 +24,7 @@ const int DriverStation::kJoystickPorts;
|
||||
|
||||
DriverStation::~DriverStation() {
|
||||
m_isRunning = false;
|
||||
m_task.join();
|
||||
m_dsThread.join();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -585,7 +586,7 @@ DriverStation::DriverStation() {
|
||||
m_joystickDescriptorCache[i].name[0] = '\0';
|
||||
}
|
||||
|
||||
m_task = Task("DriverStation", &DriverStation::Run, this);
|
||||
m_dsThread = std::thread(&DriverStation::Run, this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user