about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2014-11-24 17:33:37 -0800
committerAaron Turon <aturon@mozilla.com>2014-12-18 23:31:35 -0800
commit9b03b72d7fb82f07d35e7dcda02754c6da90ae58 (patch)
treed64cf416856d211a50083a62fd26b444859ba5eb /src/libstd/sys
parentc009bfdf94a48434e1f6bf3bfe59cf539f464ee2 (diff)
downloadrust-9b03b72d7fb82f07d35e7dcda02754c6da90ae58.tar.gz
rust-9b03b72d7fb82f07d35e7dcda02754c6da90ae58.zip
Remove rt::bookkeeping
This commit removes the runtime bookkeeping previously used to ensure
that all Rust tasks were joined before the runtime was shut down.

This functionality will be replaced by an RAII style `Thread` API, that
will also offer a detached mode.

Since this changes the semantics of shutdown, it is a:

[breaking-change]
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/common/helper_thread.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/sys/common/helper_thread.rs b/src/libstd/sys/common/helper_thread.rs
index ffb053e852e..ef0181b72b0 100644
--- a/src/libstd/sys/common/helper_thread.rs
+++ b/src/libstd/sys/common/helper_thread.rs
@@ -25,7 +25,7 @@ use prelude::*;
 use cell::UnsafeCell;
 use mem;
 use sync::{StaticMutex, StaticCondvar};
-use rt::{mod, bookkeeping};
+use rt;
 use sys::helper_signal;
 
 use task;
@@ -83,7 +83,6 @@ impl<M: Send> Helper<M> {
 
                 let t = f();
                 task::spawn(move |:| {
-                    bookkeeping::decrement();
                     helper(receive, rx, t);
                     let _g = self.lock.lock();
                     *self.shutdown.get() = true;