From 9b03b72d7fb82f07d35e7dcda02754c6da90ae58 Mon Sep 17 00:00:00 2001 From: Aaron Turon Date: Mon, 24 Nov 2014 17:33:37 -0800 Subject: 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] --- src/libstd/sys/common/helper_thread.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libstd/sys') 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 Helper { let t = f(); task::spawn(move |:| { - bookkeeping::decrement(); helper(receive, rx, t); let _g = self.lock.lock(); *self.shutdown.get() = true; -- cgit 1.4.1-3-g733a5