Searched defs:Controller (Results 1 – 1 of 1) sorted by relevance
71 struct Controller { struct74 static Controller& GetInstance() in GetInstance() argument86 threads_.emplace_back(std::thread(&Controller::Work, this, i)); in StartWorkers() argument92 void SetSwitchCount(int count) in SetSwitchCount()97 void WaitForDone() in WaitForDone()104 void StopWorkers(int n) in StopWorkers()118 void Work(int id) in Work()181 Controller::GetInstance().SetSwitchCount(m); in main() argument