/haiku/src/tests/system/glue/ |
H A D | StackAlign.cpp | 23 status_t thread(void* arg) function 25 CHECK_STACK_ALIGN("thread"); 42 // Test from thread 45 wait_for_thread(spawn_thread(thread, "test", B_NORMAL_PRIORITY, NULL), &rv);
|
/haiku/src/tests/system/kernel/ |
H A D | select_close_test.cpp | 27 thread_id thread = spawn_thread(close_fd, "close fd", B_NORMAL_PRIORITY, local 29 resume_thread(thread);
|
H A D | port_wakeup_test_2.cpp | 52 thread_id thread = spawn_thread(test_thread, "test thread", B_NORMAL_PRIORITY, NULL); local 53 resume_thread(thread); 60 printf("waiting for thread to terminate\n"); 61 wait_for_thread(thread, &s);
|
H A D | port_wakeup_test_6.cpp | 51 thread_id thread = spawn_thread(test_thread, "test thread", B_NORMAL_PRIORITY, NULL); local 52 resume_thread(thread); 59 printf("waiting for thread to terminate\n"); 60 wait_for_thread(thread, &s);
|
H A D | port_wakeup_test_7.cpp | 51 thread_id thread = spawn_thread(test_thread, "test thread", B_NORMAL_PRIORITY, NULL); local 52 resume_thread(thread); 59 printf("waiting for thread to terminate\n"); 60 wait_for_thread(thread, &s);
|
/haiku/src/system/kernel/arch/arm64/ |
H A D | arch_user_debugger.cpp | 7 #include <thread.h> 54 arch_get_thread_debug_cpu_state(Thread *thread, debug_cpu_state *cpuState) argument
|
H A D | arch_int.cpp | 14 #include <thread.h> 182 Thread* thread = thread_get_current_thread(); local 184 if (thread->cpu->invoke_scheduler) { 185 SpinLocker schedulerLocker(thread->scheduler_lock); 189 } else if (thread->post_interrupt_callback != NULL) { 190 void (*callback)(void*) = thread->post_interrupt_callback; 191 void* data = thread->post_interrupt_data; 193 thread->post_interrupt_callback = NULL; 194 thread->post_interrupt_data = NULL; 284 Thread* thread local 297 Thread *thread = thread_get_current_thread(); local [all...] |
/haiku/src/kits/debug/arch/riscv64/ |
H A D | arch_debug_support.cpp | 20 arch_debug_get_instruction_pointer(debug_context *context, thread_id thread, argument 25 status_t error = debug_get_cpu_state(context, thread, NULL, &cpuState);
|
/haiku/src/libs/bsd/ |
H A D | signal.c | 47 pthread_sigqueue(pthread_t thread, int sig, const union sigval userValue) argument 53 error = _kern_send_signal(thread->id, sig, &userValue,
|
/haiku/src/apps/debuganalyzer/gui/thread_window/ |
H A D | GeneralPage.h | 20 void SetModel(Model* model, Model::Thread* thread);
|
H A D | GeneralPage.cpp | 44 ThreadWindow::GeneralPage::SetModel(Model* model, Model::Thread* thread) argument 46 if (model == fModel && thread == fThread) 50 fThread = thread; 62 fTeamView->SetText(thread->GetTeam()->Name());
|
/haiku/src/apps/processcontroller/ |
H A D | ThreadBarMenu.h | 13 thread_id thread; member in struct:__anon8
|
H A D | ThreadBarMenuItem.h | 14 ThreadBarMenuItem(const char* title, thread_id thread,
|
/haiku/headers/posix/arch/x86/ |
H A D | npx.h | 153 void npxexit(struct thread *td); 155 int npxgetregs(struct thread *td, union savefpu *addr); 158 void npxsetregs(struct thread *td, union savefpu *addr);
|
/haiku/headers/private/debug/ |
H A D | DebugContext.h | 45 status_t ContinueThread(thread_id thread, 47 status_t SetThreadDebuggingFlags(thread_id thread, 49 status_t GetThreadCpuState(thread_id thread,
|
/haiku/src/tests/kits/app/bclipboard/ |
H A D | LockTester.cpp | 57 Spawn a thread which locks the clipboard, waits .3 seconds 59 the thread, the main thread waits .1 second. It then tries to 63 thread_id thread = spawn_thread(LockTest2,"locktest",B_NORMAL_PRIORITY,clip); local 64 CHK(thread >= B_OK); 65 resume_thread(thread);
|
/haiku/src/system/kernel/fs/ |
H A D | Vnode.cpp | 33 waiter.thread = thread_get_current_thread(); 51 thread_prepare_to_block(waiter.thread, 0, THREAD_BLOCK_TYPE_OTHER, 91 thread_unblock(waiter->thread, B_OK);
|
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/headers/ |
H A D | KPPPManager.h | 61 void (*EnableReports)(ppp_report_type type, thread_id thread, 63 void (*DisableReports)(ppp_report_type type, thread_id thread); 64 bool (*DoesReport)(ppp_report_type type, thread_id thread);
|
/haiku/src/tests/system/libroot/posix/ |
H A D | pthread_attr_stack_test.cpp | 42 pthread_t thread; local 43 ret = pthread_create(&thread, &attr, threadFunction, NULL); 45 ret = pthread_join(thread, NULL);
|
H A D | flock_test.cpp | 145 thread_id thread = spawn_thread(try_to_lock, "try", B_NORMAL_PRIORITY, (void *)fd); local 146 if (thread < B_OK) { 147 fprintf(stderr, "Could not spawn thread: %s\n", strerror(thread)); 150 resume_thread(thread); 166 wait_for_thread(thread, &returnCode);
|
/haiku/src/system/kernel/arch/m68k/ |
H A D | arch_int.cpp | 24 #include <thread.h> 188 Thread *thread = thread_get_current_thread(); local 191 if (thread) 192 m68k_push_iframe(&thread->arch_info.iframes, iframe); 206 // if this thread has a fault handler, we're allowed to be here 207 if (thread && thread->fault_handler != 0) { 208 iframe->cpu.pc = reinterpret_cast<addr_t>(thread->fault_handler); 223 // disabled, which in most cases is a bug. We should add some thread 225 if (thread [all...] |
/haiku/src/system/kernel/arch/x86/ |
H A D | arch_user_debugger.cpp | 15 #include <thread.h> 202 get_cpu_state(Thread* thread, iframe* frame, debug_cpu_state* cpuState) argument 226 if (thread == thisThread) { 228 // for the passed buffer, we use our thread's fpu_state field as 231 Thread* thread = thread_get_current_thread(); 233 x86_fxsave(thread->arch_info.fpu_state); 236 memcpy(&cpuState->extended_registers, thread->arch_info.fpu_state, 239 if (thread == thisThread) { 245 memcpy(&cpuState->extended_registers, thread->arch_info.fpu_state, 368 Thread* thread 731 Thread* thread = thread_get_current_thread(); local 750 Thread* thread = thread_get_current_thread(); local 792 arch_get_thread_debug_cpu_state(Thread* thread, debug_cpu_state* cpuState) argument 922 Thread* thread = thread_get_current_thread(); local 949 Thread* thread = thread_get_current_thread(); local 984 Thread* thread = thread_get_current_thread(); local [all...] |
/haiku/src/apps/debugger/user_interface/gui/expression_eval_window/ |
H A D | ExpressionEvaluationWindow.cpp | 125 if (message->FindInt32("thread", &threadID) != B_OK) 156 if (message->FindInt32("thread", &threadID) == B_OK) 164 if (message->FindInt32("thread", &threadID) == B_OK) 172 if (message->FindInt32("thread", &threadID) == B_OK) 180 if (message->FindInt32("thread", &threadID) == B_OK) 197 message.AddInt32("thread", event.GetThread()->ID()); 206 message.AddInt32("thread", event.GetThread()->ID()); 215 message.AddInt32("thread", event.GetThread()->ID()); 225 message.AddInt32("thread", event.GetThread()->ID()); 240 StackFrame* frame, ::Thread* thread) 239 ExpressionEvaluationRequested(ExpressionInfo* info, StackFrame* frame, ::Thread* thread) argument 374 ::Thread* thread = fTeam->ThreadByID(threadID); local 430 ::Thread* thread = fTeam->ThreadByID(threadID); local 446 ::Thread* thread = fTeam->ThreadByID(threadID); local 544 _CreateThreadMenuItem(::Thread* thread, BMenuItem*& _item) const argument [all...] |
/haiku/src/tests/servers/debug/ |
H A D | crashing_app.cpp | 32 " --thread - crash in a separate thread\n" 223 } else if (strcmp(arg, "--thread") == 0) { 259 thread_id thread = spawn_thread(crashing_thread, "crashing thread", local 261 if (thread < 0) { 262 fprintf(stderr, "Error: Failed to spawn thread: %s\n", 263 strerror(thread)); 267 resume_thread(thread); 274 while (wait_for_thread(thread, [all...] |
/haiku/src/system/kernel/arch/riscv64/ |
H A D | arch_int.cpp | 12 #include <thread.h> 258 Thread* thread = thread_get_current_thread(); local 264 // If the thread has a signal handler for the signal, we simply send it 271 thread->team->id); 273 send_signal_to_thread(thread, signal, 0); 287 Thread* thread = thread_get_current_thread(); 289 if (thread->cpu->invoke_scheduler) { 290 SpinLocker schedulerLocker(thread->scheduler_lock); 294 } else if (thread->post_interrupt_callback != NULL) { 295 void (*callback)(void*) = thread 447 Thread* thread = thread_get_current_thread(); local 477 Thread* thread = thread_get_current_thread(); local [all...] |