File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
library/std/src/sys/pal/xous Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -68,14 +68,18 @@ impl Thread {
68
68
)
69
69
. map_err ( |code| io:: Error :: from_raw_os_error ( code as i32 ) ) ?;
70
70
71
- extern "C" fn thread_start ( main : * mut usize , guard_page_pre : usize , stack_size : usize ) {
71
+ extern "C" fn thread_start (
72
+ main : * mut usize ,
73
+ guard_page_pre : usize ,
74
+ stack_size : usize ,
75
+ ) -> ! {
72
76
unsafe {
73
- // Finally, let's run some code .
77
+ // Run the contents of the new thread .
74
78
Box :: from_raw ( main as * mut Box < dyn FnOnce ( ) > ) ( ) ;
75
79
}
76
80
77
81
// Destroy TLS, which will free the TLS page and call the destructor for
78
- // any thread local storage.
82
+ // any thread local storage (if any) .
79
83
unsafe {
80
84
crate :: sys:: thread_local_key:: destroy_tls ( ) ;
81
85
}
You can’t perform that action at this time.
0 commit comments