diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-10-05 21:01:58 +0200 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2013-10-05 21:01:58 +0200 |
| commit | 49ac6baa726988c7a84dff3bdc8c1f8812940224 (patch) | |
| tree | 7d7494e4697685be1ddd541d411372d15e56050c /src/libstd/rt/task.rs | |
| parent | 1506dac10faf4b48f3d3debb9b20f2f55352deca (diff) | |
| download | rust-49ac6baa726988c7a84dff3bdc8c1f8812940224.tar.gz rust-49ac6baa726988c7a84dff3bdc8c1f8812940224.zip | |
Make a task name use a `SendStr`, allowing for either
static or owned strings
Diffstat (limited to 'src/libstd/rt/task.rs')
| -rw-r--r-- | src/libstd/rt/task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index 0068d103073..2d1b57cebf5 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -33,6 +33,7 @@ use rt::context::Context; use unstable::finally::Finally; use task::spawn::Taskgroup; use cell::Cell; +use send_str::SendStr; // The Task struct represents all state associated with a rust // task. There are at this point two primary "subtypes" of task, @@ -49,8 +50,7 @@ pub struct Task { taskgroup: Option<Taskgroup>, death: Death, destroyed: bool, - // FIXME(#6874/#7599) use StringRef to save on allocations - name: Option<~str>, + name: Option<SendStr>, coroutine: Option<Coroutine>, sched: Option<~Scheduler>, task_type: TaskType, |
