Skip to content

Commit 5d43c89

Browse files
committed
Add mac/ios pthread_mach_thread_np
1 parent f5e31f2 commit 5d43c89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3980,6 +3980,7 @@ extern "C" {
39803980
pub fn mach_thread_self() -> mach_port_t;
39813981
pub fn pthread_setname_np(name: *const ::c_char) -> ::c_int;
39823982
pub fn pthread_getname_np(thread: ::pthread_t, name: *mut ::c_char, len: ::size_t) -> ::c_int;
3983+
pub fn pthread_mach_thread_np(thread: ::pthread_t) -> ::mach_port_t;
39833984
pub fn pthread_from_mach_thread_np(port: ::mach_port_t) -> ::pthread_t;
39843985
pub fn pthread_get_stackaddr_np(thread: ::pthread_t) -> *mut ::c_void;
39853986
pub fn pthread_get_stacksize_np(thread: ::pthread_t) -> ::size_t;

0 commit comments

Comments
 (0)