resolved some todos
This commit is contained in:
@@ -56,12 +56,11 @@ void OutputDriver::activate_all_lamps() const
|
||||
|
||||
void OutputDriver::rotate_all_lamps() const
|
||||
{
|
||||
for(const auto & lamp : lamps)
|
||||
for(const auto & lamp : this->lamps)
|
||||
{
|
||||
lamp.second->activate();
|
||||
// ToDo sleep time + is this thread safe??
|
||||
// TODO: time should be parameter
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
// ToDo is this thread safe??
|
||||
std::this_thread::sleep_for(lamp.second->get_activation_time());
|
||||
lamp.second->deactivate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user