Change ignore async events ordering to SeqCst

This commit is contained in:
Connor Brewster 2016-07-08 09:00:43 -06:00
parent 3f285fd437
commit 55267560ca
2 changed files with 2 additions and 2 deletions

View file

@ -190,7 +190,7 @@ pub struct CancellableRunnable<T: Runnable + Send> {
impl<T: Runnable + Send> Runnable for CancellableRunnable<T> {
fn is_cancelled(&self) -> bool {
self.cancelled.load(Ordering::Relaxed)
self.cancelled.load(Ordering::SeqCst)
}
fn handler(self: Box<CancellableRunnable<T>>) {