aboutsummaryrefslogtreecommitdiff
path: root/src/rt/sync/sync.h
diff options
context:
space:
mode:
authorMichael Bebenita <[email protected]>2010-09-07 23:37:51 -0700
committerMichael Bebenita <[email protected]>2010-09-07 23:37:51 -0700
commit7f6d8b95bd3340ea5fa32874243dac036208105b (patch)
tree7010caf355578adc06a0919df97b0418683ba41f /src/rt/sync/sync.h
parentLots of design changes around proxies and message passing. Made it so that do... (diff)
downloadrust-7f6d8b95bd3340ea5fa32874243dac036208105b.tar.xz
rust-7f6d8b95bd3340ea5fa32874243dac036208105b.zip
Fixed race in the rust kernel.
Diffstat (limited to 'src/rt/sync/sync.h')
-rw-r--r--src/rt/sync/sync.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rt/sync/sync.h b/src/rt/sync/sync.h
index 562d2a1b..3829dafe 100644
--- a/src/rt/sync/sync.h
+++ b/src/rt/sync/sync.h
@@ -15,12 +15,15 @@ public:
* Thread utility class. Derive and implement your own run() method.
*/
class rust_thread {
+private:
+ volatile bool _is_running;
public:
#if defined(__WIN32__)
HANDLE thread;
#else
pthread_t thread;
#endif
+ rust_thread();
void start();
virtual void run() {