about summary refs log tree commit diff
path: root/src/libstd/task
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-11-25 18:08:31 -0800
committerAlex Crichton <alex@alexcrichton.com>2013-11-27 09:53:48 -0800
commit5d6dbf3f262fabcb6cb920dd08be6f9d8df75d5c (patch)
tree8218728771f9eb50c20a621736c0dd4e682d15b3 /src/libstd/task
parented86b48cc9a8349e8e99de5f013f68f1edff4121 (diff)
downloadrust-5d6dbf3f262fabcb6cb920dd08be6f9d8df75d5c.tar.gz
rust-5d6dbf3f262fabcb6cb920dd08be6f9d8df75d5c.zip
Improve the rt::thread module
* Added doc comments explaining what all public functionality does.
* Added the ability to spawn a detached thread
* Added the ability for the procs to return a value in 'join'
Diffstat (limited to 'src/libstd/task')
-rw-r--r--src/libstd/task/spawn.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs
index 6c1c28c9805..198fe596a89 100644
--- a/src/libstd/task/spawn.rs
+++ b/src/libstd/task/spawn.rs
@@ -139,7 +139,7 @@ pub fn spawn_raw(mut opts: TaskOpts, f: proc()) {
             let join_task = do Task::build_child(None) {
                 debug!("running join task");
                 let thread_port = thread_port_cell.take();
-                let thread: Thread = thread_port.recv();
+                let thread: Thread<()> = thread_port.recv();
                 thread.join();
             };