Lines Matching defs:thread
18 #include <thread.h>
89 Thread* thread = thread_get_current_thread();
91 panic("unhandled trap 0x%lx (%s) at ip 0x%lx, thread %" B_PRId32 "!\n",
93 frame->ip, thread ? thread->id : -1);
190 Thread* thread = thread_get_current_thread();
194 // If the thread has a signal handler for the signal, we simply send it
201 thread->team->id);
203 send_signal_to_thread(thread, signal, 0);
220 Thread* thread = thread_get_current_thread();
244 if (thread->cpu->invoke_scheduler) {
245 SpinLocker schedulerLocker(thread->scheduler_lock);
249 } else if (thread->post_interrupt_callback != NULL) {
250 void (*callback)(void*) = thread->post_interrupt_callback;
251 void* data = thread->post_interrupt_data;
253 thread->post_interrupt_callback = NULL;
254 thread->post_interrupt_data = NULL;
266 Thread* thread = thread_get_current_thread();
271 // If this CPU or this thread has a fault handler, we're allowed to be
273 if (thread != NULL) {
284 if (thread->fault_handler != 0) {
285 kprintf("ERROR: thread::fault_handler used in kernel "
290 frame->ip = reinterpret_cast<uintptr_t>(thread->fault_handler);
319 // disabled, which in most cases is a bug. We should add some thread
321 if (thread != NULL && thread->fault_handler != 0) {
323 = reinterpret_cast<uintptr_t>(thread->fault_handler);
341 } else if (thread != NULL && thread->page_faults_allowed < 1) {