Merge branch 'master' of https://github.com/swinginbird/flippr-code
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user