File tree 5 files changed +4
-12
lines changed
5 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 2f8b69534435d8dc459e5731d8fb41b22725b37f
2
+ refs/heads/master: 68f82de8178ca5f7ed7a3803fdc41f84fc97664b
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ export spawn_joinable;
53
53
native "cdecl" mod rustrt {
54
54
// these must run on the Rust stack so that they can swap stacks etc:
55
55
fn task_sleep ( time_in_us : uint ) ;
56
- fn task_yield ( ) ;
57
56
}
58
57
59
58
native "c-stack-cdecl" mod rustrt2 = "rustrt" {
@@ -149,7 +148,7 @@ Yield control to the task scheduler
149
148
150
149
The scheduler may schedule another task to execute.
151
150
*/
152
- fn yield ( ) { ret rustrt :: task_yield ( ) ; }
151
+ fn yield ( ) { sleep ( 1 u ) }
153
152
154
153
/*
155
154
Function: join
Original file line number Diff line number Diff line change @@ -171,12 +171,6 @@ task_sleep(size_t time_in_us) {
171
171
task->yield (time_in_us);
172
172
}
173
173
174
- extern " C" CDECL void
175
- task_yield () {
176
- rust_task *task = rust_scheduler::get_task ();
177
- task->yield (1 );
178
- }
179
-
180
174
/* Debug builtins for std::dbg. */
181
175
182
176
static void
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ start_task
60
60
vec_reserve_shared
61
61
vec_from_buf_shared
62
62
task_sleep
63
- task_yield
64
63
unsupervise
65
64
upcall_alloc_c_stack
66
65
upcall_call_c_stack
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Can we bind native things?
3
3
*/
4
4
5
5
native "c-stack-cdecl" mod rustrt {
6
- fn task_yield ( ) ;
6
+ fn task_sleep ( ) ;
7
7
}
8
8
9
- fn main ( ) { bind rustrt:: task_yield ( ) ; }
9
+ fn main ( ) { bind rustrt:: task_sleep ( ) ; }
You can’t perform that action at this time.
0 commit comments