@@ -110,7 +110,7 @@ see a failure from the grandchild task. While we could achieve this by having
110
110
each intermediate task block on its handle, this keeps around the other resources
111
111
the task was using. To be more efficient, this is accomplished via "tombstones".
112
112
113
- A tombstone is a closure, ~fn () -> bool, which will perform any waiting necessary
113
+ A tombstone is a closure, proc () -> bool, which will perform any waiting necessary
114
114
to collect the exit code of descendant tasks. In its environment is captured
115
115
the KillHandle of whichever task created the tombstone, and perhaps also any
116
116
tombstones that that task itself had, and finally also another tombstone,
@@ -205,7 +205,7 @@ struct KillHandleInner {
205
205
// Locklessly accessed; protected by the enclosing refcount's barriers.
206
206
any_child_failed : bool ,
207
207
// A lazy list, consuming which may unwrap() many child tombstones.
208
- child_tombstones : Option < ~ fn ( ) -> bool > ,
208
+ child_tombstones : Option < proc ( ) -> bool > ,
209
209
// Protects multiple children simultaneously creating tombstones.
210
210
graveyard_lock : LittleLock ,
211
211
}
@@ -223,7 +223,7 @@ pub struct Death {
223
223
priv watching_parent : Option < KillHandle > ,
224
224
// Action to be done with the exit code. If set, also makes the task wait
225
225
// until all its watched children exit before collecting the status.
226
- on_exit : Option < ~ fn ( UnwindResult ) > ,
226
+ on_exit : Option < proc ( UnwindResult ) > ,
227
227
// nesting level counter for task::unkillable calls (0 == killable).
228
228
priv unkillable : int ,
229
229
// nesting level counter for unstable::atomically calls (0 == can deschedule).
@@ -525,7 +525,8 @@ impl KillHandle {
525
525
// NB: Takes a pthread mutex -- 'blk' not allowed to reschedule.
526
526
#[ inline]
527
527
fn add_lazy_tombstone ( parent : & mut KillHandle ,
528
- blk : & fn ( Option < ~fn ( ) -> bool > ) -> ~fn ( ) -> bool ) {
528
+ blk : & fn ( Option < proc ( ) -> bool > )
529
+ -> proc ( ) -> bool ) {
529
530
530
531
let inner: & mut KillHandleInner = unsafe { & mut * parent. get ( ) } ;
531
532
unsafe {
0 commit comments