Commit 7b61f2e0 by FritzFlorian

Fix: Remove old import prohibiting compilation

parent 0cffce1c
Pipeline #1248 failed with stages
in 26 seconds
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
#include <typeindex> #include <typeindex>
#include <tuple> #include <tuple>
#include <pls/internal/scheduling/root_task.h> #include <pls/pls.h>
#include <pls/internal/helpers/unique_id.h>
int main() { int main() {
......
...@@ -100,9 +100,7 @@ task *scheduler::steal_task() { ...@@ -100,9 +100,7 @@ task *scheduler::steal_task() {
size_t target = (offset + i) % num_threads(); size_t target = (offset + i) % num_threads();
// Skip our self for stealing // Skip our self for stealing
if (target == my_id) { target = ((target == my_id) + target) % num_threads();
continue;
}
auto target_state = thread_state_for(target); auto target_state = thread_state_for(target);
// TODO: See if we should re-try popping if it failed due to contention // TODO: See if we should re-try popping if it failed due to contention
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment