We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28219fc commit 18ce014Copy full SHA for 18ce014
src/libstd/rt/sched.rs
@@ -454,8 +454,7 @@ impl Scheduler {
454
// * Task Routing Functions - Make sure tasks send up in the right
455
// place.
456
457
- fn process_task(mut ~self, mut task: ~Task,
458
- schedule_fn: SchedulingFn) {
+ fn process_task(mut ~self, mut task: ~Task, schedule_fn: SchedulingFn) {
459
rtdebug!("processing a task");
460
461
let home = task.take_unwrap_home();
@@ -779,7 +778,7 @@ impl Scheduler {
779
778
780
// Supporting types
781
782
-type SchedulingFn = ~fn(~Scheduler, ~Task);
+type SchedulingFn = extern "Rust" fn (~Scheduler, ~Task);
783
784
pub enum SchedMessage {
785
Wake,
0 commit comments