ModuleSummation: Make synchronization tighter
This commit is contained in:
@@ -116,9 +116,11 @@ void ModuleSummation::AddFPGAOutput(const DeviceOutput &input, const std::option
|
||||
}
|
||||
|
||||
void ModuleSummation::AddEmptyOutput() {
|
||||
std::unique_lock ul(module_summation_mutex);
|
||||
is_empty = true;
|
||||
}
|
||||
|
||||
bool ModuleSummation::empty() const {
|
||||
std::unique_lock ul(module_summation_mutex);
|
||||
return is_empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user