Command: Use SmallPtrSet for requirements instead of std::set

This commit is contained in:
Peter Johnson
2018-07-28 09:48:10 -07:00
parent eb64ea9fc7
commit fedf828120
4 changed files with 14 additions and 14 deletions

View File

@@ -95,7 +95,8 @@ class Scheduler : public ErrorBase, public SendableBase {
void ProcessCommandAddition(Command* command);
Command::SubsystemSet m_subsystems;
typedef std::set<Subsystem*> SubsystemSet;
SubsystemSet m_subsystems;
wpi::mutex m_buttonsMutex;
typedef std::vector<std::unique_ptr<ButtonScheduler>> ButtonVector;
ButtonVector m_buttons;