From 0ada7c7ffe453b9df849996f8dca0b8d0f2d9e62 Mon Sep 17 00:00:00 2001 From: reedlepee Date: Sun, 20 Oct 2013 06:03:09 +0530 Subject: Making fields in std and extra : private #4386 --- src/libstd/rt/task.rs | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'src/libstd/rt/task.rs') diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index a6f9e11e40e..6e0b96c221e 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -43,20 +43,22 @@ use send_str::SendStr; // the type-specific state. pub struct Task { - heap: LocalHeap, - gc: GarbageCollector, - storage: LocalStorage, - logger: StdErrLogger, - unwinder: Unwinder, - taskgroup: Option, - death: Death, - destroyed: bool, - name: Option, - coroutine: Option, - sched: Option<~Scheduler>, - task_type: TaskType, + //all priv made br reedlepe + heap: LocalHeap, + priv gc: GarbageCollector, + storage: LocalStorage, + logger: StdErrLogger, + unwinder: Unwinder, + taskgroup: Option, + death: Death, + destroyed: bool, + name: Option, + coroutine: Option, + sched: Option<~Scheduler>, + task_type: TaskType, // Dynamic borrowck debugging info - borrow_list: Option<~[BorrowRecord]> + // should be public + borrow_list: Option<~[BorrowRecord]> } pub enum TaskType { @@ -69,7 +71,8 @@ pub struct Coroutine { /// The segment of stack on which the task is currently running or /// if the task is blocked, on which the task will resume /// execution. - current_stack_segment: StackSegment, + //all priv made br reedlepe + priv current_stack_segment: StackSegment, /// Always valid if the task is alive and not running. saved_context: Context } @@ -84,6 +87,7 @@ pub struct GarbageCollector; pub struct LocalStorage(Option); pub struct Unwinder { + //all priv made br reedlepe unwinding: bool, } -- cgit 1.4.1-3-g733a5