mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Fix some move constructors (#1754)
Timer didn't have working move semantics because mutexes aren't moveable, meaning the default implementations were ill-formed. MotorSafety wasn't locking its mutex.
This commit is contained in:
committed by
Peter Johnson
parent
8757bc471b
commit
e582518bae
@@ -56,8 +56,8 @@ class Timer {
|
||||
|
||||
virtual ~Timer() = default;
|
||||
|
||||
Timer(Timer&&) = default;
|
||||
Timer& operator=(Timer&&) = default;
|
||||
Timer(Timer&& rhs);
|
||||
Timer& operator=(Timer&& rhs);
|
||||
|
||||
/**
|
||||
* Get the current time from the timer. If the clock is running it is derived
|
||||
|
||||
Reference in New Issue
Block a user