@@ -79,7 +79,7 @@ use option;
79
79
use comm:: { Chan , GenericChan , GenericPort , Port , stream} ;
80
80
use pipes;
81
81
use prelude:: * ;
82
- use private ;
82
+ use unstable ;
83
83
use ptr;
84
84
use hashmap:: linear:: LinearSet ;
85
85
use task:: local_data_priv:: { local_get, local_set} ;
@@ -123,7 +123,7 @@ struct TaskGroupData {
123
123
// tasks in this group.
124
124
mut descendants : TaskSet ,
125
125
}
126
- type TaskGroupArc = private :: Exclusive < Option < TaskGroupData > > ;
126
+ type TaskGroupArc = unstable :: Exclusive < Option < TaskGroupData > > ;
127
127
128
128
type TaskGroupInner = & mut Option < TaskGroupData > ;
129
129
@@ -153,7 +153,7 @@ struct AncestorNode {
153
153
mut ancestors : AncestorList ,
154
154
}
155
155
156
- enum AncestorList = Option < private : : Exclusive < AncestorNode > > ;
156
+ enum AncestorList = Option < unstable : : Exclusive < AncestorNode > > ;
157
157
158
158
// Accessors for taskgroup arcs and ancestor arcs that wrap the unsafety.
159
159
#[ inline( always) ]
@@ -162,7 +162,7 @@ fn access_group<U>(x: &TaskGroupArc, blk: fn(TaskGroupInner) -> U) -> U {
162
162
}
163
163
164
164
#[ inline( always) ]
165
- fn access_ancestors < U > ( x : & private :: Exclusive < AncestorNode > ,
165
+ fn access_ancestors < U > ( x : & unstable :: Exclusive < AncestorNode > ,
166
166
blk : fn ( x : & mut AncestorNode ) -> U ) -> U {
167
167
unsafe { x. with ( blk) }
168
168
}
@@ -458,7 +458,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
458
458
// Main task, doing first spawn ever. Lazily initialise here.
459
459
let mut members = new_taskset ( ) ;
460
460
taskset_insert ( & mut members, spawner) ;
461
- let tasks = private :: exclusive ( Some ( TaskGroupData {
461
+ let tasks = unstable :: exclusive ( Some ( TaskGroupData {
462
462
members : members,
463
463
descendants : new_taskset ( ) ,
464
464
} ) ) ;
@@ -482,7 +482,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
482
482
( g, a, spawner_group. is_main )
483
483
} else {
484
484
// Child is in a separate group from spawner.
485
- let g = private :: exclusive ( Some ( TaskGroupData {
485
+ let g = unstable :: exclusive ( Some ( TaskGroupData {
486
486
members : new_taskset ( ) ,
487
487
descendants : new_taskset ( ) ,
488
488
} ) ) ;
@@ -502,7 +502,7 @@ fn gen_child_taskgroup(linked: bool, supervised: bool)
502
502
} ;
503
503
assert new_generation < uint:: max_value;
504
504
// Build a new node in the ancestor list.
505
- AncestorList ( Some ( private :: exclusive ( AncestorNode {
505
+ AncestorList ( Some ( unstable :: exclusive ( AncestorNode {
506
506
generation : new_generation,
507
507
parent_group : Some ( spawner_group. tasks . clone ( ) ) ,
508
508
ancestors : old_ancestors,
0 commit comments