Fixed async tests to pass TASN checks

This commit is contained in:
gabime
2018-08-14 00:58:50 +03:00
parent 566df7e826
commit 530e209f66
2 changed files with 12 additions and 6 deletions

View File

@@ -21,11 +21,13 @@ class test_sink : public base_sink<Mutex>
public:
size_t msg_counter()
{
std::lock_guard<Mutex> lock(base_sink<Mutex>::mutex_);
return msg_counter_;
}
size_t flush_counter()
{
std::lock_guard<Mutex> lock(base_sink<Mutex>::mutex_);
return flush_counter_;
}