@@ -78,9 +78,9 @@ export ThreadPerTask;
78
78
export ManualThreads ;
79
79
export PlatformThread ;
80
80
81
- macro_rules! move_it {
81
+ macro_rules! move_it (
82
82
{ $x: expr } => { unsafe { let y <- * ptr:: addr_of( $x) ; y } }
83
- }
83
+ )
84
84
85
85
/* Data types */
86
86
@@ -209,7 +209,7 @@ type TaskOpts = {
209
209
linked : bool ,
210
210
supervised : bool ,
211
211
mut notify_chan : Option < Chan < Notification > > ,
212
- sched : option < SchedOpts > ,
212
+ sched : Option < SchedOpts > ,
213
213
} ;
214
214
215
215
/**
@@ -254,7 +254,7 @@ priv impl TaskBuilder {
254
254
}
255
255
self . consumed = true ;
256
256
let notify_chan = if self . opts . notify_chan == None {
257
- none
257
+ None
258
258
} else {
259
259
Some ( option:: swap_unwrap ( & mut self . opts . notify_chan ) )
260
260
} ;
@@ -450,12 +450,12 @@ impl TaskBuilder {
450
450
* must be greater than zero.
451
451
*/
452
452
fn spawn(+f: fn~()) {
453
- let notify_chan = if self.opts.notify_chan == none {
453
+ let notify_chan = if self.opts.notify_chan == None {
454
454
None
455
455
} else {
456
456
let swapped_notify_chan =
457
457
option::swap_unwrap(&mut self.opts.notify_chan);
458
- some (swapped_notify_chan)
458
+ Some (swapped_notify_chan)
459
459
};
460
460
let x = self.consume();
461
461
let opts = {
@@ -1309,7 +1309,7 @@ fn spawn_raw(+opts: TaskOpts, +f: fn~()) {
1309
1309
//let mut notifier = None;//notify_chan.map(|c| AutoNotify(c));
1310
1310
let notifier = match notify_chan {
1311
1311
Some ( notify_chan_value) => {
1312
- let moved_ncv = move_it!{ notify_chan_value} ;
1312
+ let moved_ncv = move_it!( notify_chan_value) ;
1313
1313
Some ( AutoNotify ( moved_ncv) )
1314
1314
}
1315
1315
_ => None
0 commit comments