mirror of
https://github.com/opencv/opencv.git
synced 2025-06-28 15:30:49 +08:00
Merge pull request #18982 from anton-potapov:sole_tbb_executor_async_test
This commit is contained in:
commit
6f5af6eb42
@ -95,9 +95,9 @@ TEST(TBBExecutor, AsyncBasic) {
|
|||||||
if (!slept) {
|
if (!slept) {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
}
|
}
|
||||||
callback();
|
|
||||||
callback_called = true;
|
callback_called = true;
|
||||||
master_was_blocked_until_callback_called = (master_is_waiting == true);
|
master_was_blocked_until_callback_called = (master_is_waiting == true);
|
||||||
|
callback();
|
||||||
});
|
});
|
||||||
|
|
||||||
auto async_task_body = [&](std::function<void()>&& cb, size_t /*total_order_index*/) {
|
auto async_task_body = [&](std::function<void()>&& cb, size_t /*total_order_index*/) {
|
||||||
|
Loading…
Reference in New Issue
Block a user