@@ -90,6 +90,7 @@ use task::{ExistingScheduler, SchedulerHandle};
90
90
use task:: unkillable;
91
91
use uint;
92
92
use util;
93
+ use unstable:: sync:: { Exclusive , exclusive} ;
93
94
94
95
#[ cfg( test) ] use task:: default_task_opts;
95
96
@@ -128,7 +129,7 @@ struct TaskGroupData {
128
129
// tasks in this group.
129
130
descendants : TaskSet ,
130
131
}
131
- type TaskGroupArc = unstable :: Exclusive < Option < TaskGroupData > > ;
132
+ type TaskGroupArc = Exclusive < Option < TaskGroupData > > ;
132
133
133
134
type TaskGroupInner < ' self > = & ' self mut Option < TaskGroupData > ;
134
135
@@ -158,7 +159,7 @@ struct AncestorNode {
158
159
ancestors : AncestorList ,
159
160
}
160
161
161
- struct AncestorList ( Option < unstable :: Exclusive < AncestorNode > > ) ;
162
+ struct AncestorList ( Option < Exclusive < AncestorNode > > ) ;
162
163
163
164
// Accessors for taskgroup arcs and ancestor arcs that wrap the unsafety.
164
165
#[ inline( always) ]
@@ -167,7 +168,7 @@ fn access_group<U>(x: &TaskGroupArc, blk: &fn(TaskGroupInner) -> U) -> U {
167
168
}
168
169
169
170
#[ inline( always) ]
170
- fn access_ancestors < U > ( x : & unstable :: Exclusive < AncestorNode > ,
171
+ fn access_ancestors < U > ( x : & Exclusive < AncestorNode > ,
171
172
blk : & fn ( x : & mut AncestorNode ) -> U ) -> U {
172
173
x. with ( blk)
173
174
}
@@ -479,7 +480,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
479
480
// here.
480
481
let mut members = new_taskset ( ) ;
481
482
taskset_insert ( & mut members, spawner) ;
482
- let tasks = unstable :: exclusive ( Some ( TaskGroupData {
483
+ let tasks = exclusive ( Some ( TaskGroupData {
483
484
members : members,
484
485
descendants : new_taskset ( ) ,
485
486
} ) ) ;
@@ -508,7 +509,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
508
509
( g, a, spawner_group. is_main )
509
510
} else {
510
511
// Child is in a separate group from spawner.
511
- let g = unstable :: exclusive ( Some ( TaskGroupData {
512
+ let g = exclusive ( Some ( TaskGroupData {
512
513
members : new_taskset ( ) ,
513
514
descendants : new_taskset ( ) ,
514
515
} ) ) ;
@@ -528,7 +529,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
528
529
} ;
529
530
assert ! ( new_generation < uint:: max_value) ;
530
531
// Build a new node in the ancestor list.
531
- AncestorList ( Some ( unstable :: exclusive ( AncestorNode {
532
+ AncestorList ( Some ( exclusive ( AncestorNode {
532
533
generation : new_generation,
533
534
parent_group : Some ( spawner_group. tasks . clone ( ) ) ,
534
535
ancestors : old_ancestors,
0 commit comments