|
|
@ -100,7 +100,7 @@ void Replay::start(int seconds) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Replay::updateEvents(const std::function<bool()> &lambda) { |
|
|
|
void Replay::updateEvents(const std::function<bool()> &lambda) { |
|
|
|
// set updating_events to true to force stream thread release the lock and wait for evnets_udpated.
|
|
|
|
// set updating_events to true to force stream thread release the lock and wait for events_updated.
|
|
|
|
updating_events_ = true; |
|
|
|
updating_events_ = true; |
|
|
|
{ |
|
|
|
{ |
|
|
|
std::unique_lock lk(stream_lock_); |
|
|
|
std::unique_lock lk(stream_lock_); |
|
|
|