Lines Matching refs:thread
39 #include <kern/thread.h>
68 extern kern_return_t thread_setstatus(thread_t thread, int flavor,
161 thread_t thread;
167 thread = current_thread();
168 ut = get_bsdthread_info(thread);
195 if (thread_getstatus(thread, flavor, (thread_state_t)state, &state_count) != KERN_SUCCESS)
207 if (thread_getstatus(thread, flavor, (thread_state_t)state, &state_count) != KERN_SUCCESS)
213 if (thread_getstatus(thread, flavor, (thread_state_t)state, &state_count) != KERN_SUCCESS)
308 if (thread_getstatus(thread, flavor, (thread_state_t)state, &state_count) != KERN_SUCCESS)
321 if (thread_getstatus(thread, flavor, (thread_state_t)state, &state_count) != KERN_SUCCESS)
327 if (thread_getstatus(thread, flavor, (thread_state_t)state, &state_count) != KERN_SUCCESS)
610 if (thread_setstatus(thread, flavor, (thread_state_t)state, state_count) != KERN_SUCCESS)
615 pal_set_signal_delivery( thread );
655 thread_t thread = current_thread();
669 ut = (struct uthread *)get_bsdthread_info(thread);
672 * If we are being asked to change the altstack flag on the thread, we
747 signal_setast(thread);
752 if (thread_setstatus(thread, ts_flavor, ts, ts_count) != KERN_SUCCESS) {
759 if (thread_setstatus(thread, fs_flavor, fs, fs_count) != KERN_SUCCESS) {