Skip to content

Commit

Permalink
Fix silly mistake on memory order for atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinhora committed Dec 1, 2017
1 parent b1160ab commit 316a5d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libponyrt/sched/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ static pony_actor_t* steal(scheduler_t* sched)
// unlock the bool that controls modifying the active scheduler count
// variable
atomic_store_explicit(&scheduler_count_changing, false,
memory_order_relaxed);
memory_order_release);

// sleep waiting for signal to wake up again
#if defined(PLATFORM_IS_WINDOWS)
Expand All @@ -436,7 +436,7 @@ static pony_actor_t* steal(scheduler_t* sched)
// variable. this is because the signalling thread locks the control
// variable before signalling
atomic_store_explicit(&scheduler_count_changing, false,
memory_order_relaxed);
memory_order_release);
}
else if(!sched->asio_noisy)
{
Expand Down

0 comments on commit 316a5d9

Please sign in to comment.