some annotations/questions

This commit is contained in:
Johannes Wendel
2019-05-03 23:02:25 +02:00
parent 8ba2c62d44
commit 7ced90a18c
2 changed files with 138 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;