This commit is contained in:
Jonas Zeunert
2019-05-06 01:07:43 +02:00
3 changed files with 139 additions and 259 deletions

View File

@@ -55,6 +55,7 @@ void OutputDriver::rotate_all_lamps() const
{
lamp.second->activate();
// ToDo sleep time + is this thread safe??
// TODO: time should be parameter
std::this_thread::sleep_for(std::chrono::milliseconds(10));
lamp.second->deactivate();
}
@@ -64,6 +65,7 @@ std::vector<std::shared_ptr<Sound>> OutputDriver::get_sounds() const
{
std::vector<std::shared_ptr<Sound>> sounds;
// TODO: why a copy?
boost::copy(this->sounds | boost::adaptors::map_values, std::back_inserter(sounds));
return sounds;