mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Deprecates Task and Semaphore, and changes other deprecations to use wpiutil version (#330)
This commit is contained in:
committed by
Peter Johnson
parent
861726cefa
commit
1efb2e4d3d
@@ -12,13 +12,16 @@
|
||||
|
||||
#include "ErrorBase.h"
|
||||
#include "HAL/HAL.h"
|
||||
#include "support/deprecated.h"
|
||||
|
||||
namespace frc {
|
||||
|
||||
/**
|
||||
* Wrapper class around std::thread that allows changing thread priority
|
||||
*/
|
||||
class Task : public ErrorBase {
|
||||
class WPI_DEPRECATED(
|
||||
"Task API scheduled for removal in 2018. Replace with std::thread") Task
|
||||
: public ErrorBase {
|
||||
public:
|
||||
static const int kDefaultPriority = 60;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user