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:
Tyler Veness
2019-07-07 19:15:59 -07:00
committed by Peter Johnson
parent 8757bc471b
commit e582518bae
3 changed files with 19 additions and 2 deletions

View File

@@ -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