Thread native name setting, fix #10302
This commit is contained in:
parent
33a3d6d88f
commit
7e67eba180
|
@ -296,7 +296,7 @@ extern {
|
|||
fn pthread_set_name_np(tid: libc::pthread_t, name: *const libc::c_char);
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
||||
extern {
|
||||
pub fn pthread_self() -> libc::pthread_t;
|
||||
pub fn pthread_get_stackaddr_np(thread: libc::pthread_t) -> *mut libc::c_void;
|
||||
|
|
Loading…
Reference in New Issue