about summary refs log tree commit diff
path: root/src/rt/sync
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-04 16:04:16 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-08 15:33:40 -0800
commit6eafe5d772131c644a40ae1013a6016dcba037c4 (patch)
treed0616a509a1f50d055053ae66a4ede3ad1a1e6af /src/rt/sync
parentfad3de5900174cd553d9e5a535fde91384dd3836 (diff)
rt: Remove is_running flag from rust_thread. Unused
Diffstat (limited to 'src/rt/sync')
-rw-r--r--src/rt/sync/sync.cpp9
-rw-r--r--src/rt/sync/sync.h4
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
 };