/haiku/src/tests/system/libroot/posix/ |
H A D | pthread_sigqueue.cpp | 94 pthread_t thread; local 95 int rc = pthread_create(&thread, nullptr, 104 ASSERT_EQ(0, pthread_sigqueue(thread, SIGALRM, sigval)); 106 pthread_join(thread, nullptr);
|
/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/headers/compatibility/gnu/ |
H A D | pthread.h | 20 extern int pthread_getattr_np(pthread_t thread, pthread_attr_t* attr); 22 extern int pthread_getname_np(pthread_t thread, char* buffer, size_t length); 23 extern int pthread_setname_np(pthread_t thread, const char* name);
|
/haiku/headers/compatibility/bsd/ |
H A D | signal.h | 25 int pthread_sigqueue(pthread_t thread, int sig, const union sigval value);
|
/haiku/src/system/kernel/arch/x86/ |
H A D | arch_int.cpp | 18 #include <thread.h> 89 Thread* thread = thread_get_current_thread(); local 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(); local 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 local 266 Thread* thread = thread_get_current_thread(); local [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...] |
/haiku/src/system/kernel/arch/ppc/ |
H A D | arch_int.cpp | 22 #include <thread.h> 108 Thread *thread = thread_get_current_thread(); local 111 if (thread) 112 ppc_push_iframe(&thread->arch_info.iframes, iframe); 129 // if this CPU or this thread has a fault handler, 137 Thread *thread = thread_get_current_thread(); local 138 if (thread && thread->fault_handler != 0) { 140 reinterpret_cast<uintptr_t>(thread->fault_handler); 157 } else if (thread ! [all...] |
/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/arm64/ |
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/system/kernel/arch/arm/ |
H A D | arch_int.cpp | 27 #include <thread.h> 354 Thread *thread = thread_get_current_thread(); 360 dprintf("FAR: %08lx, FSR: %08x, isUser: %d, isWrite: %d, isExec: %d, thread: %s\n", far, fsr, isUser, isWrite, isExec, thread->name); 366 // If this CPU or this thread has a fault handler, we're allowed to be 368 if (thread != NULL) { 379 if (thread->fault_handler != 0) { 380 kprintf("ERROR: thread::fault_handler used in kernel " 384 frame->pc = reinterpret_cast<uintptr_t>(thread->fault_handler); 406 // disabled, which in most cases is a bug. We should add some thread 475 Thread* thread = thread_get_current_thread(); local [all...] |
/haiku/headers/os/drivers/ |
H A D | KernelExport.h | 185 extern int send_signal_etc(pid_t thread, uint signal, uint32 flags);
|
/haiku/src/apps/haikudepot/ui/ |
H A D | UserLoginWindow.cpp | 90 with a pointer to the window structure are provided to the background thread 100 /*! A background thread runs to gather data to use in the interface for creating 101 a new user. This structure is passed to the background thread. 111 /*! A background thread runs to authenticate the user with the remote server 112 system. This structure provides the thread with the necessary data to 386 HDDEBUG("quit requested while worker thread is operating -- will " 387 "try again once the worker thread has completed"); 452 UserLoginWindow::_SetWorkerThreadLocked(thread_id thread) argument 455 _SetWorkerThread(thread); 460 UserLoginWindow::_SetWorkerThread(thread_id thread) argument 500 thread_id thread = spawn_thread(&_AuthenticateThreadEntry, local 726 thread_id thread = spawn_thread(&_CreateAccountSetupThreadEntry, local 1074 thread_id thread = spawn_thread(&_CreateAccountThreadEntry, local [all...] |
H A D | UserLoginWindow.h | 54 void _SetWorkerThread(thread_id thread); 55 void _SetWorkerThreadLocked(thread_id thread);
|
H A D | RatePackageWindow.h | 48 void _SetWorkerThread(thread_id thread);
|
H A D | RatePackageWindow.cpp | 426 thread_id thread = spawn_thread(&_QueryRatingThreadEntry, local 428 if (thread >= 0) 429 _SetWorkerThread(thread); 436 thread_id thread = spawn_thread(&_SendRatingThreadEntry, local 438 if (thread >= 0) 439 _SetWorkerThread(thread); 444 RatePackageWindow::_SetWorkerThread(thread_id thread) argument 449 bool enabled = thread < 0; 455 if (thread >= 0) { 456 fWorkerThread = thread; [all...] |
H A D | ScreenshotWindow.h | 51 void _SetWorkerThread(thread_id thread);
|
H A D | ScreenshotWindow.cpp | 210 thread_id thread = spawn_thread(&_DownloadThreadEntry, local 212 if (thread >= 0) 213 _SetWorkerThread(thread); 218 ScreenshotWindow::_SetWorkerThread(thread_id thread) argument 223 // bool enabled = thread < 0; 229 if (thread >= 0) { 230 fWorkerThread = thread;
|
/haiku/src/apps/haikudepot/server/ |
H A D | WebAppInterface.cpp | 1035 thread_id thread = request->Run(); local 1036 wait_for_thread(thread, NULL); 1117 thread_id thread = request->Run(); local 1118 wait_for_thread(thread, NULL);
|
/haiku/src/add-ons/kernel/drivers/graphics/intel_extreme/ |
H A D | intel_extreme.cpp | 437 thread_id thread = find_thread(NULL); local 439 if (get_thread_info(thread, &threadInfo) != B_OK
|
/haiku/src/system/kernel/vm/ |
H A D | vm.cpp | 46 #include <thread.h> 3794 // We need at least one argument, the address. Optionally a thread ID can be 3811 Thread* thread = Thread::GetDebug(threadID); 3812 if (thread == NULL) { 3813 kprintf("Invalid thread/team ID \"%s\"\n", argv[argi - 1]); 3817 team = thread->team; 3891 Thread* thread = debug_get_debugged_thread(); local 3892 if (thread == NULL || thread->team == NULL) { 3897 addressSpace = thread 4530 Thread* thread = thread_get_current_thread(); local 4539 Thread* thread = thread_get_current_thread(); local 4600 Thread* thread = thread_get_current_thread(); local 4612 Thread* thread = thread_get_current_thread(); local 5549 Thread* thread = debug_get_debugged_thread(); local [all...] |
/haiku/src/system/kernel/ |
H A D | DPC.cpp | 125 // spawn the thread 149 thread_id thread = fThreadID; local 154 // wake up the thread and wait for it 156 wait_for_thread(thread, NULL); 235 // time, the condition variable of the first thread will be used.
|
H A D | condition_variable.cpp | 19 #include <thread.h> 116 // variable's thread, so we must not be interrupted during it. 389 Thread* thread = atomic_pointer_get_and_set(&entry->fThread, (Thread*)NULL); local 390 if (thread == NULL) { 407 SpinLocker schedulerLocker(thread->scheduler_lock); 410 if (lastWaitStatus == STATUS_WAITING && thread->state != B_THREAD_WAITING) { 411 // The thread is not in B_THREAD_WAITING state, so we must unblock it early, 413 thread_unblock_locked(thread, result); 417 // No matter what the thread is doing, as we were the ones to clear its 423 // If the thread wa [all...] |
/haiku/src/servers/registrar/ |
H A D | MIMEManager.cpp | 249 MimeUpdateThread *thread = NULL; local 270 // Create the appropriate flavor of mime update thread 274 thread = new(nothrow) CreateAppMetaMimeThread( 283 thread = new(nothrow) UpdateMimeInfoThread(synchronous 297 err = thread ? B_OK : B_NO_MEMORY; 299 err = threadStatus = thread->InitCheck(); 301 // Launch the thread 303 err = fThreadManager.LaunchThread(thread); 323 // Delete the thread if necessary 325 delete thread; [all...] |
/haiku/src/system/kernel/events/ |
H A D | event_queue.cpp | 18 #include <thread.h>
|
/haiku/src/tests/system/network/tcp_shell/ |
H A D | tcp_shell.cpp | 49 thread_id thread; member in struct:context 1376 context.thread = spawn_thread(receiving_thread, 1379 resume_thread(context.thread); 1389 wait_for_thread(context.thread, &status); 1806 sServerContext.thread, client, sClientContext.thread);
|