Skip to content
Snippets Groups Projects
Unverified Commit 7476df05 authored by Yuki Okushi's avatar Yuki Okushi Committed by GitHub
Browse files

Merge pull request #1857 from fabiim/add-pthread-from-mach-thread

 Add mac/ios pthread_from_mach_thread_np
parents ab3c2291 8ced4c0a
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,8 @@ pub type shmatt_t = ::c_ushort; ...@@ -35,6 +35,8 @@ pub type shmatt_t = ::c_ushort;
pub type sae_associd_t = u32; pub type sae_associd_t = u32;
pub type sae_connid_t = u32; pub type sae_connid_t = u32;
pub type mach_port_t = ::c_uint;
deprecated_mach! { deprecated_mach! {
pub type vm_prot_t = ::c_int; pub type vm_prot_t = ::c_int;
pub type vm_size_t = ::uintptr_t; pub type vm_size_t = ::uintptr_t;
...@@ -3395,6 +3397,7 @@ extern "C" { ...@@ -3395,6 +3397,7 @@ extern "C" {
name: *mut ::c_char, name: *mut ::c_char,
len: ::size_t, len: ::size_t,
) -> ::c_int; ) -> ::c_int;
pub fn pthread_from_mach_thread_np(port: ::mach_port_t) -> ::pthread_t;
pub fn pthread_get_stackaddr_np(thread: ::pthread_t) -> *mut ::c_void; pub fn pthread_get_stackaddr_np(thread: ::pthread_t) -> *mut ::c_void;
pub fn pthread_get_stacksize_np(thread: ::pthread_t) -> ::size_t; pub fn pthread_get_stacksize_np(thread: ::pthread_t) -> ::size_t;
pub fn pthread_condattr_setpshared( pub fn pthread_condattr_setpshared(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment