about summary refs log tree commit diff
path: root/src/rt/rust_task.h
diff options
context:
space:
mode:
authorEric Holk <eholk@mozilla.com>2011-06-21 18:08:34 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-06-27 09:58:39 -0700
commit6367bcf4276c06d41b0d66f10711ca3b076ae547 (patch)
tree14f52a00319dcba17755330da3bcf978a53c0b3d /src/rt/rust_task.h
parent4d99bf9af2107523c01566968e889c4f1a5de49e (diff)
downloadrust-6367bcf4276c06d41b0d66f10711ca3b076ae547.tar.gz
rust-6367bcf4276c06d41b0d66f10711ca3b076ae547.zip
Fixed a few concurrency bugs. Still not perfect, but overall it seems much more reliable.
Diffstat (limited to 'src/rt/rust_task.h')
-rw-r--r--src/rt/rust_task.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h
index db3c0367adb..3f9a0660300 100644
--- a/src/rt/rust_task.h
+++ b/src/rt/rust_task.h
@@ -53,7 +53,7 @@ rust_task : public maybe_proxy<rust_task>,
     
     // This flag indicates that a worker is either currently running the task
     // or is about to run this task.
-    bool active;
+    volatile bool active;
 
     // Only a pointer to 'name' is kept, so it must live as long as this task.
     rust_task(rust_dom *dom,