From 7f6d8b95bd3340ea5fa32874243dac036208105b Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Tue, 7 Sep 2010 23:37:51 -0700 Subject: Fixed race in the rust kernel. --- src/rt/sync/sync.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/rt/sync/sync.h') 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() { -- cgit v1.2.3