Lines Matching refs:profile_thread
32 static thread_t profile_thread = MACH_PORT_NULL; variable
64 if (profile_thread == MACH_PORT_NULL) in update_waiter()
69 err = __thread_create (__mach_task_self (), &profile_thread); in update_waiter()
71 err = __mach_setup_thread (__mach_task_self (), profile_thread, in update_waiter()
74 err = __mach_setup_tls(profile_thread); in update_waiter()
86 err = __thread_resume (profile_thread); in update_waiter()
123 if (profile_thread != MACH_PORT_NULL) in libc_hidden_def()
124 __thread_suspend (profile_thread); in libc_hidden_def()
234 if (profile_thread != MACH_PORT_NULL) in fork_profil_child()
236 __mach_port_deallocate (__mach_task_self (), profile_thread); in fork_profil_child()
237 profile_thread = MACH_PORT_NULL; in fork_profil_child()