blob: 205f9c4b8f317ff259c9503aae6e024b45a5f599 [file] [log] [blame]
Brian Silvermanda45b6c2014-12-28 11:36:50 -08001#ifndef FRC971_WPILIB_JOYSTICK_SENDER_H_
2#define FRC971_WPILIB_JOYSTICK_SENDER_H_
3
4#include <atomic>
5
6namespace frc971 {
7namespace wpilib {
8
9class 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_