diff options
Diffstat (limited to 'oryxc/src/compiler.rs')
| -rw-r--r-- | oryxc/src/compiler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oryxc/src/compiler.rs b/oryxc/src/compiler.rs index 355b496..5a16356 100644 --- a/oryxc/src/compiler.rs +++ b/oryxc/src/compiler.rs @@ -144,7 +144,7 @@ fn worker_loop( stealers: Arc<[Stealer<Job>]>, ) { loop { - if state.njobs.load(Ordering::Relaxed) == 0 { + if state.njobs.load(Ordering::Acquire) == 0 { break; } @@ -202,7 +202,7 @@ fn worker_loop( }, } - state.njobs.fetch_sub(1, Ordering::Relaxed); + state.njobs.fetch_sub(1, Ordering::Release); } } |