mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +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
@@ -44,7 +44,7 @@ class Counter : public SensorBase,
|
||||
explicit Counter(int channel);
|
||||
explicit Counter(DigitalSource* source);
|
||||
explicit Counter(std::shared_ptr<DigitalSource> source);
|
||||
DEPRECATED("Use pass-by-reference instead.")
|
||||
WPI_DEPRECATED("Use pass-by-reference instead.")
|
||||
explicit Counter(AnalogTrigger* trigger);
|
||||
explicit Counter(const AnalogTrigger& trigger);
|
||||
Counter(EncodingType encodingType, DigitalSource* upSource,
|
||||
|
||||
@@ -79,7 +79,7 @@ class Encoder : public SensorBase,
|
||||
double PIDGet() override;
|
||||
|
||||
void SetIndexSource(int channel, IndexingType type = kResetOnRisingEdge);
|
||||
DEPRECATED("Use pass-by-reference instead.")
|
||||
WPI_DEPRECATED("Use pass-by-reference instead.")
|
||||
void SetIndexSource(DigitalSource* source,
|
||||
IndexingType type = kResetOnRisingEdge);
|
||||
void SetIndexSource(const DigitalSource& source,
|
||||
|
||||
@@ -49,7 +49,7 @@ class Preferences : public ErrorBase {
|
||||
void PutFloat(llvm::StringRef key, float value);
|
||||
void PutBoolean(llvm::StringRef key, bool value);
|
||||
void PutLong(llvm::StringRef key, int64_t value);
|
||||
DEPRECATED(
|
||||
WPI_DEPRECATED(
|
||||
"Saving is now automatically performed by the NetworkTables server.")
|
||||
void Save();
|
||||
bool ContainsKey(llvm::StringRef key);
|
||||
|
||||
@@ -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