@@ -83,7 +83,7 @@ pub struct Scheduler {
83
83
/// A fast XorShift rng for scheduler use
84
84
rng : XorShiftRng ,
85
85
/// A toggleable idle callback
86
- idle_callback : Option < Box < PausableIdleCallback : Send > > ,
86
+ idle_callback : Option < Box < PausableIdleCallback + Send > > ,
87
87
/// A countdown that starts at a random value and is decremented
88
88
/// every time a yield check is performed. When it hits 0 a task
89
89
/// will yield.
@@ -100,7 +100,7 @@ pub struct Scheduler {
100
100
// destroyed before it's actually destroyed.
101
101
102
102
/// The event loop used to drive the scheduler and perform I/O
103
- pub event_loop : Box < EventLoop : Send > ,
103
+ pub event_loop : Box < EventLoop + Send > ,
104
104
}
105
105
106
106
/// An indication of how hard to work on a given operation, the difference
@@ -123,7 +123,7 @@ impl Scheduler {
123
123
// * Initialization Functions
124
124
125
125
pub fn new ( pool_id : uint ,
126
- event_loop : Box < EventLoop : Send > ,
126
+ event_loop : Box < EventLoop + Send > ,
127
127
work_queue : deque:: Worker < Box < GreenTask > > ,
128
128
work_queues : Vec < deque:: Stealer < Box < GreenTask > > > ,
129
129
sleeper_list : SleeperList ,
@@ -136,7 +136,7 @@ impl Scheduler {
136
136
}
137
137
138
138
pub fn new_special ( pool_id : uint ,
139
- event_loop : Box < EventLoop : Send > ,
139
+ event_loop : Box < EventLoop + Send > ,
140
140
work_queue : deque:: Worker < Box < GreenTask > > ,
141
141
work_queues : Vec < deque:: Stealer < Box < GreenTask > > > ,
142
142
sleeper_list : SleeperList ,
@@ -183,7 +183,7 @@ impl Scheduler {
183
183
pub fn bootstrap ( mut ~self ) {
184
184
185
185
// Build an Idle callback.
186
- let cb = box SchedRunner as Box < Callback : Send > ;
186
+ let cb = box SchedRunner as Box < Callback + Send > ;
187
187
self . idle_callback = Some ( self . event_loop . pausable_idle_callback ( cb) ) ;
188
188
189
189
// Create a task for the scheduler with an empty context.
@@ -231,7 +231,7 @@ impl Scheduler {
231
231
// mutable reference to the event_loop to give it the "run"
232
232
// command.
233
233
unsafe {
234
- let event_loop: * mut Box < EventLoop : Send > = & mut self . event_loop ;
234
+ let event_loop: * mut Box < EventLoop + Send > = & mut self . event_loop ;
235
235
// Our scheduler must be in the task before the event loop
236
236
// is started.
237
237
stask. put_with_sched ( self ) ;
@@ -904,7 +904,7 @@ pub enum SchedMessage {
904
904
}
905
905
906
906
pub struct SchedHandle {
907
- remote : Box < RemoteCallback : Send > ,
907
+ remote : Box < RemoteCallback + Send > ,
908
908
queue : msgq:: Producer < SchedMessage > ,
909
909
pub sched_id : uint
910
910
}
0 commit comments