File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e838edc0b331bd02b276ff17a1a6f1f98e68a7b3
2
+ refs/heads/master: f8de679c1e7de9a099e0c98f6440e6e01978ce7f
Original file line number Diff line number Diff line change @@ -22,25 +22,27 @@ export spawn;
22
22
export spawn_notify;
23
23
export spawn_joinable;
24
24
25
- native "rust" mod rustrt { // C Stack?
26
- fn task_sleep ( time_in_us : uint ) ; // No
27
- fn task_yield ( ) ; // No
28
- fn start_task ( id : task_id , closure : * u8 ) ; // No
29
- fn task_join ( t : task_id ) -> int ; // Refactor
25
+ native "cdecl" mod rustrt {
26
+ // these must run on the Rust stack so that they can swap stacks etc:
27
+ fn task_sleep ( time_in_us : uint ) ;
28
+ fn task_yield ( ) ;
29
+ fn start_task ( id : task_id , closure : * u8 ) ;
30
+ fn task_join ( t : task_id ) -> int ;
30
31
}
31
32
32
33
native "c-stack-cdecl" mod rustrt2 = "rustrt" {
33
- fn pin_task ( ) ; // Yes
34
- fn unpin_task ( ) ; // Yes
35
- fn get_task_id ( ) -> task_id ; // Yes
34
+ // these can run on the C stack:
35
+ fn pin_task ( ) ;
36
+ fn unpin_task ( ) ;
37
+ fn get_task_id ( ) -> task_id ;
36
38
37
- fn set_min_stack ( stack_size : uint ) ; // Yes
39
+ fn set_min_stack ( stack_size : uint ) ;
38
40
39
41
fn new_task ( ) -> task_id ;
40
42
fn drop_task ( task : * rust_task ) ;
41
43
fn get_task_pointer ( id : task_id ) -> * rust_task ;
42
44
43
- fn migrate_alloc ( alloc : * u8 , target : task_id ) ; // Yes
45
+ fn migrate_alloc ( alloc : * u8 , target : task_id ) ;
44
46
}
45
47
46
48
type rust_task =
You can’t perform that action at this time.
0 commit comments