diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-04 16:04:16 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-08 15:33:40 -0800 |
| commit | 6eafe5d772131c644a40ae1013a6016dcba037c4 (patch) | |
| tree | d0616a509a1f50d055053ae66a4ede3ad1a1e6af /src/rt/sync/sync.cpp | |
| parent | fad3de5900174cd553d9e5a535fde91384dd3836 (diff) | |
| download | rust-6eafe5d772131c644a40ae1013a6016dcba037c4.tar.gz rust-6eafe5d772131c644a40ae1013a6016dcba037c4.zip | |
rt: Remove is_running flag from rust_thread. Unused
Diffstat (limited to 'src/rt/sync/sync.cpp')
| -rw-r--r-- | src/rt/sync/sync.cpp | 9 |
1 files changed, 1 insertions, 8 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; } |
