diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2012-07-03 18:38:49 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2012-07-03 18:39:58 -0400 |
| commit | 70070b8bbcf2b0f8a4715aa92528cda37ee458ce (patch) | |
| tree | 6281440e6c454bb15827e98886a81b2b19d4c141 /src/libcore/task.rs | |
| parent | efb3227fb341f91040f408af40e5b95de285944b (diff) | |
| download | rust-70070b8bbcf2b0f8a4715aa92528cda37ee458ce.tar.gz rust-70070b8bbcf2b0f8a4715aa92528cda37ee458ce.zip | |
task.rs: minor doc/comment changes
Diffstat (limited to 'src/libcore/task.rs')
| -rw-r--r-- | src/libcore/task.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/task.rs b/src/libcore/task.rs index 884382eb9bd..f452e611018 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -88,13 +88,13 @@ enum notification { #[doc = "Scheduler modes"] enum sched_mode { - #[doc = "All tasks run in the same OS thread"] + #[doc = "1:N -- All tasks run in the same OS thread"] single_threaded, - #[doc = "Tasks are distributed among available CPUs"] + #[doc = "M:N -- Tasks are distributed among available CPUs"] thread_per_core, - #[doc = "Each task runs in its own OS thread"] + #[doc = "N:N -- Each task runs in its own OS thread"] thread_per_task, - #[doc = "Tasks are distributed among a fixed number of OS threads"] + #[doc = "?:N -- Tasks are distributed among a fixed number of OS threads"] manual_threads(uint), #[doc = " Tasks are scheduled on the main OS thread @@ -168,7 +168,7 @@ Provides detailed control over the properties and behavior of new tasks. // it only applies to a single task, so then you have to maintain some // potentially tricky state to ensure that everything behaves correctly // when you try to reuse the builder to spawn a new task. We'll just -// sidestep that whole issue by making builder's uncopyable and making +// sidestep that whole issue by making builders uncopyable and making // the run function move them in. enum builder { builder_({ |
