|
| void | SetUp () override |
| |
| void | TearDown () override |
| |
| bool | wait_for_flag (const std::atomic< bool > &flag, std::chrono::milliseconds timeout=std::chrono::milliseconds(500)) |
| |
| bool | wait_for_count (const std::atomic< int > &counter, int target, std::chrono::milliseconds timeout=std::chrono::milliseconds(500)) |
| |
Definition at line 1158 of file test_async_operations.cpp.
◆ SetUp()
| void StreamProcessorTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotected |
◆ TearDown()
| void StreamProcessorTest::TearDown |
( |
| ) |
|
|
inlineoverrideprotected |
◆ wait_for_count()
| bool StreamProcessorTest::wait_for_count |
( |
const std::atomic< int > & | counter, |
|
|
int | target, |
|
|
std::chrono::milliseconds | timeout = std::chrono::milliseconds(500) ) |
|
inlineprotected |
Definition at line 1181 of file test_async_operations.cpp.
1183 {
1184 auto deadline = std::chrono::steady_clock::now() +
timeout;
1185 while (counter.load() < target && std::chrono::steady_clock::now() < deadline) {
1186 std::this_thread::sleep_for(std::chrono::milliseconds(5));
1187 }
1188 return counter.load() >= target;
1189 }
◆ wait_for_flag()
| bool StreamProcessorTest::wait_for_flag |
( |
const std::atomic< bool > & | flag, |
|
|
std::chrono::milliseconds | timeout = std::chrono::milliseconds(500) ) |
|
inlineprotected |
Definition at line 1170 of file test_async_operations.cpp.
1172 {
1173 auto deadline = std::chrono::steady_clock::now() +
timeout;
1174 while (!flag.load() && std::chrono::steady_clock::now() < deadline) {
1175 std::this_thread::sleep_for(std::chrono::milliseconds(5));
1176 }
1177 return flag.load();
1178 }
◆ backend_
| std::shared_ptr<async_stub_backend> StreamProcessorTest::backend_ |
|
protected |
◆ processor_
The documentation for this class was generated from the following file: