Brian Silverman | da45b6c | 2014-12-28 11:36:50 -0800 | [diff] [blame^] | 1 | #ifndef FRC971_WPILIB_JOYSTICK_SENDER_H_ |
2 | #define FRC971_WPILIB_JOYSTICK_SENDER_H_ | ||||
3 | |||||
4 | #include <atomic> | ||||
5 | |||||
6 | namespace frc971 { | ||||
7 | namespace wpilib { | ||||
8 | |||||
9 | class JoystickSender { | ||||
10 | public: | ||||
11 | void operator()(); | ||||
12 | |||||
13 | void Quit() { run_ = false; } | ||||
14 | |||||
15 | private: | ||||
16 | ::std::atomic<bool> run_{true}; | ||||
17 | }; | ||||
18 | |||||
19 | } // namespace wpilib | ||||
20 | } // namespace frc971 | ||||
21 | |||||
22 | #endif // FRC971_WPILIB_JOYSTICK_SENDER_H_ |