Commit 246fd7e3 authored by Dominik Charousset's avatar Dominik Charousset

fixed nasty bug in cooperative scheduling policy

parent b24375d9
......@@ -101,8 +101,8 @@ class cooperative_scheduling {
case intrusive::first_enqueued: {
auto state = self->state();
auto set_ready = [&]() -> bool {
auto s = self->cas_state(state, actor_state::ready);
return s == actor_state::ready;
state = self->cas_state(state, actor_state::ready);
return state == actor_state::ready;
};
for (;;) {
switch (state) {
......
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 to comment