Little fix of order of destruction in stress tests

This commit is contained in:
sangelovic committed 2020-01-19 18:57:14 +01:00
1 parent f41d9bc395
commit 4310a3bd17
3 files changed
+23 -4

No files matched your search

+4 -4
View File
@@ -154,12 +154,12 @@ public:
~FahrenheitThermometerAdaptor()
{
unregisterAdaptor();
exit_ = true;
cond_.notify_all();
for (auto& worker : workers_)
worker.join();
unregisterAdaptor();
}
protected:
@@ -264,12 +264,12 @@ public:
~ConcatenatorAdaptor()
{
unregisterAdaptor();
exit_ = true;
cond_.notify_all();
for (auto& worker : workers_)
worker.join();
unregisterAdaptor();
}
protected: