@@ -90,6 +90,7 @@ use task::{ExistingScheduler, SchedulerHandle};
9090use task:: unkillable;
9191use uint;
9292use util;
93+ use unstable:: sync:: { Exclusive , exclusive} ;
9394
9495#[ cfg( test) ] use task:: default_task_opts;
9596
@@ -128,7 +129,7 @@ struct TaskGroupData {
128129 // tasks in this group.
129130 descendants : TaskSet ,
130131}
131- type TaskGroupArc = unstable :: Exclusive < Option < TaskGroupData > > ;
132+ type TaskGroupArc = Exclusive < Option < TaskGroupData > > ;
132133
133134type TaskGroupInner < ' self > = & ' self mut Option < TaskGroupData > ;
134135
@@ -158,7 +159,7 @@ struct AncestorNode {
158159 ancestors : AncestorList ,
159160}
160161
161- struct AncestorList ( Option < unstable :: Exclusive < AncestorNode > > ) ;
162+ struct AncestorList ( Option < Exclusive < AncestorNode > > ) ;
162163
163164// Accessors for taskgroup arcs and ancestor arcs that wrap the unsafety.
164165#[ inline( always) ]
@@ -167,7 +168,7 @@ fn access_group<U>(x: &TaskGroupArc, blk: &fn(TaskGroupInner) -> U) -> U {
167168}
168169
169170#[ inline( always) ]
170- fn access_ancestors < U > ( x : & unstable :: Exclusive < AncestorNode > ,
171+ fn access_ancestors < U > ( x : & Exclusive < AncestorNode > ,
171172 blk : & fn ( x : & mut AncestorNode ) -> U ) -> U {
172173 x. with ( blk)
173174}
@@ -479,7 +480,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
479480 // here.
480481 let mut members = new_taskset ( ) ;
481482 taskset_insert ( & mut members, spawner) ;
482- let tasks = unstable :: exclusive ( Some ( TaskGroupData {
483+ let tasks = exclusive ( Some ( TaskGroupData {
483484 members : members,
484485 descendants : new_taskset ( ) ,
485486 } ) ) ;
@@ -508,7 +509,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
508509 ( g, a, spawner_group. is_main )
509510 } else {
510511 // Child is in a separate group from spawner.
511- let g = unstable :: exclusive ( Some ( TaskGroupData {
512+ let g = exclusive ( Some ( TaskGroupData {
512513 members : new_taskset ( ) ,
513514 descendants : new_taskset ( ) ,
514515 } ) ) ;
@@ -528,7 +529,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
528529 } ;
529530 assert ! ( new_generation < uint:: max_value) ;
530531 // Build a new node in the ancestor list.
531- AncestorList ( Some ( unstable :: exclusive ( AncestorNode {
532+ AncestorList ( Some ( exclusive ( AncestorNode {
532533 generation : new_generation,
533534 parent_group : Some ( spawner_group. tasks . clone ( ) ) ,
534535 ancestors : old_ancestors,
0 commit comments