diff options
Diffstat (limited to 'src/rt/sync/sync.h')
| -rw-r--r-- | src/rt/sync/sync.h | 3 |
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() { |