diff options
| -rw-r--r-- | src/rt/sync/sync.cpp | 9 | ||||
| -rw-r--r-- | src/rt/sync/sync.h | 4 |
2 files changed, 1 insertions, 12 deletions
diff --git a/src/rt/sync/sync.cpp b/src/rt/sync/sync.cpp index fd8c48936a4..31162d35b03 100644 --- a/src/rt/sync/sync.cpp +++ b/src/rt/sync/sync.cpp @@ -19,7 +19,7 @@ void sync::sleep(size_t timeout_in_ms) { #endif } -rust_thread::rust_thread() : _is_running(false), thread(0) { +rust_thread::rust_thread() : thread(0) { } #if defined(__WIN32__) @@ -46,7 +46,6 @@ rust_thread::start() { pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); pthread_create(&thread, &attr, rust_thread_start, (void *) this); #endif - _is_running = true; } void @@ -59,10 +58,4 @@ rust_thread::join() { pthread_join(thread, NULL); #endif thread = 0; - _is_running = false; -} - -bool -rust_thread::is_running() { - return _is_running; } diff --git a/src/rt/sync/sync.h b/src/rt/sync/sync.h index 8298f402881..9c911e2c929 100644 --- a/src/rt/sync/sync.h +++ b/src/rt/sync/sync.h @@ -37,8 +37,6 @@ 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; @@ -54,8 +52,6 @@ public: void join(); - bool is_running(); - virtual ~rust_thread() {} // quiet the compiler }; |
