update comment
This commit is contained in:
parent
41434ff4a3
commit
d7b55e4c90
@ -95,10 +95,7 @@ unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
|
|||||||
unsafe {
|
unsafe {
|
||||||
sys::init(argc, argv, sigpipe);
|
sys::init(argc, argv, sigpipe);
|
||||||
|
|
||||||
// Next, set up the current Thread with the guard information we just
|
// Set up the current thread to give it the right name.
|
||||||
// created. Note that this isn't necessary in general for new threads,
|
|
||||||
// but we just do this to name the main thread and to give it correct
|
|
||||||
// info about the stack bounds.
|
|
||||||
let thread = Thread::new(Some(rtunwrap!(Ok, CString::new("main"))));
|
let thread = Thread::new(Some(rtunwrap!(Ok, CString::new("main"))));
|
||||||
thread::set_current(thread);
|
thread::set_current(thread);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user