Move native thread name setting from thread_info to Thread, fixes #21911

This commit is contained in:
Vojtech Kral
2015-02-04 02:26:00 +01:00
parent bfdcd34e82
commit dca49e06b1
2 changed files with 4 additions and 4 deletions

View File

@@ -280,6 +280,10 @@ impl Builder {
unsafe {
stack::record_os_managed_stack_bounds(my_stack_bottom, my_stack_top);
}
match their_thread.name() {
Some(name) => unsafe { imp::set_name(name.as_slice()); },
None => {}
}
thread_info::set(
(my_stack_bottom, my_stack_top),
unsafe { imp::guard::current() },