about summary refs log tree commit diff
path: root/src/libstd/rt/task.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-01 06:01:39 -0700
committerbors <bors@rust-lang.org>2013-08-01 06:01:39 -0700
commit18d124b9b5dcb9915e5e1489eed81ed6a8b90c39 (patch)
tree08815543f7ba4e527622ab5c654f87b17d91c252 /src/libstd/rt/task.rs
parent9824d90ffd7684eca7171c4e019fd85b9317904e (diff)
parentbc7cee7bbf816be7a712c06a93015dc3c6fd5611 (diff)
downloadrust-18d124b9b5dcb9915e5e1489eed81ed6a8b90c39.tar.gz
rust-18d124b9b5dcb9915e5e1489eed81ed6a8b90c39.zip
auto merge of #8158 : bblum/rust/task-cleanup, r=brson
r? @brson
Diffstat (limited to 'src/libstd/rt/task.rs')
-rw-r--r--src/libstd/rt/task.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs
index 82d4f8fcc04..c1b799796d1 100644
--- a/src/libstd/rt/task.rs
+++ b/src/libstd/rt/task.rs
@@ -40,7 +40,9 @@ pub struct Task {
     taskgroup: Option<Taskgroup>,
     death: Death,
     destroyed: bool,
-    coroutine: Option<~Coroutine>
+    coroutine: Option<~Coroutine>,
+    // FIXME(#6874/#7599) use StringRef to save on allocations
+    name: Option<~str>,
 }
 
 pub struct Coroutine {
@@ -90,7 +92,8 @@ impl Task {
             taskgroup: None,
             death: Death::new(),
             destroyed: false,
-            coroutine: Some(~Coroutine::new(stack_pool, start))
+            coroutine: Some(~Coroutine::new(stack_pool, start)),
+            name: None,
         }
     }
 
@@ -109,7 +112,8 @@ impl Task {
             // FIXME(#7544) make watching optional
             death: self.death.new_child(),
             destroyed: false,
-            coroutine: Some(~Coroutine::new(stack_pool, start))
+            coroutine: Some(~Coroutine::new(stack_pool, start)),
+            name: None,
         }
     }