Lines Matching refs:thread
29 create_wakeupmsg (struct __pthread *thread) in create_wakeupmsg() argument
34 thread->wakeupmsg.msgh_bits = MACH_MSGH_BITS (MACH_MSG_TYPE_COPY_SEND, 0); in create_wakeupmsg()
35 thread->wakeupmsg.msgh_size = 0; in create_wakeupmsg()
38 &thread->wakeupmsg.msgh_remote_port); in create_wakeupmsg()
42 thread->wakeupmsg.msgh_local_port = MACH_PORT_NULL; in create_wakeupmsg()
43 thread->wakeupmsg.msgh_seqno = 0; in create_wakeupmsg()
44 thread->wakeupmsg.msgh_id = 0; in create_wakeupmsg()
47 thread->wakeupmsg.msgh_remote_port, in create_wakeupmsg()
48 thread->wakeupmsg.msgh_remote_port, in create_wakeupmsg()
53 thread->wakeupmsg.msgh_remote_port); in create_wakeupmsg()
59 thread->wakeupmsg.msgh_remote_port, 1); in create_wakeupmsg()
67 __pthread_thread_alloc (struct __pthread *thread) in __pthread_thread_alloc() argument
72 err = create_wakeupmsg (thread); in __pthread_thread_alloc()
79 thread->kernel_thread = __mach_thread_self (); in __pthread_thread_alloc()
84 err = __thread_create (__mach_task_self (), &thread->kernel_thread); in __pthread_thread_alloc()
88 thread->wakeupmsg.msgh_remote_port); in __pthread_thread_alloc()