Skip to content
Snippets Groups Projects
Unverified Commit 73e553cb authored by Guilherme Amadio's avatar Guilherme Amadio
Browse files

Revert "Count tasks before launching them in case they are chained"

This reverts commit 9d226a34.
This interferes with counting the tasks in a way that breaks the test.
parent 37d917f1
No related branches found
No related tags found
No related merge requests found
...@@ -341,12 +341,12 @@ TEST(TBufferMerger, RegisterCallbackTasks) ...@@ -341,12 +341,12 @@ TEST(TBufferMerger, RegisterCallbackTasks)
TTaskGroup tg; TTaskGroup tg;
/* callback: launch up to two new tasks when called */ /* callback: launches new tasks when called */
merger.RegisterCallback([&]() { merger.RegisterCallback([&]() {
int i = 0; int i = 0;
while (launched < tasks && ++i <= 2) { while (launched < tasks && ++i <= 2) {
++launched;
tg.Run(task); tg.Run(task);
++launched;
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment