/haiku/src/system/libroot/posix/unistd/ |
H A D | fork.c | 139 thread_id thread; local 154 thread = _kern_fork(); 155 if (thread == 0) { 179 if (thread < 0) { 181 __set_errno(thread); 182 thread = -1; 185 return thread;
|
/haiku/src/system/libroot/posix/pthread/ |
H A D | pthread_key.cpp | 37 /*! Function to get the thread specific value of a key in a lockless 38 way. The thread specific value is reset to NULL. 43 get_key_value(pthread_thread* thread, uint32 key, int32 sequence) argument 45 pthread_key_data& keyData = thread->specific[key]; 64 __pthread_key_call_destructors(pthread_thread* thread) argument 69 void* value = get_key_value(thread, key, sequence); 123 pthread_thread* thread = pthread_self(); local 131 || thread->specific[key].sequence != sequence) 134 return thread->specific[key].value;
|
/haiku/src/bin/debug/time_stats/ |
H A D | timing_analysis.cpp | 25 return a.thread < b.thread; 117 sortedThreads[0].thread = child; 129 && initialUsage[initialI].thread > finalUsage[finalI].thread)) { 130 // new thread 140 && initialUsage[initialI].thread < finalUsage[finalI].thread)) { 141 // gone thread 149 // thread i [all...] |
/haiku/src/apps/debugger/user_interface/report/ |
H A D | ReportUserInterface.cpp | 162 ::Thread* thread = fTeam->ThreadByID(fTargetThread); local 163 if (thread == NULL) 165 else if (thread->State() != THREAD_STATE_STOPPED) { 216 ::Thread* thread = event.GetThread(); local 217 if (thread->ID() != fTargetThread) 220 if (thread->State() != THREAD_STATE_STOPPED) 221 fListener->ThreadActionRequested(thread->ID(), MSG_THREAD_STOP); 230 ::Thread* thread = event.GetThread(); local 231 if (thread->ID() != fTargetThread) 233 else if (thread [all...] |
/haiku/src/tests/servers/registrar/ |
H A D | run_test_registrar.cpp | 28 thread_id thread = load_image(1, args, (const char**)environ); local 29 if (thread < B_OK) { 31 __progname, strerror(thread)); 32 return (status_t)thread; 35 return resume_thread(thread); 55 // search for the roster thread
|
/haiku/src/add-ons/kernel/file_systems/shared/ |
H A D | DebugSupport.cpp | 26 \note The initialization is not thread safe! 91 thread_id thread = find_thread(NULL); local 92 if (thread != dbg_printf_thread) { 95 dbg_printf_thread = thread; 105 thread_id thread = find_thread(NULL); local 106 if (thread != dbg_printf_thread)
|
/haiku/src/system/kernel/locks/ |
H A D | lock.cpp | 26 #include <thread.h> 31 Thread* thread; member in struct:mutex_waiter 37 Thread* thread; member in struct:rw_lock_waiter 94 thread_id thread = thread_get_current_thread_id(); local 96 if (thread != RECURSIVE_LOCK_HOLDER(lock)) { 99 lock->holder = thread; 111 thread_id thread = thread_get_current_thread_id(); local 120 if (thread != RECURSIVE_LOCK_HOLDER(lock)) { 126 lock->holder = thread; 139 panic("recursive_lock %p unlocked by non-holder thread!\ 167 thread_id thread = thread_get_current_thread_id(); local 202 thread_id thread = thread_get_current_thread_id(); local 232 thread_id thread = thread_get_current_thread_id(); local 464 Thread* thread = thread_get_current_thread(); local 479 Thread* thread = thread_get_current_thread(); local 706 thread_id thread = thread_get_current_thread_id(); local 878 Thread* thread = waiter->thread; local 929 mutex_transfer_lock(mutex* lock, thread_id thread) argument [all...] |
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_debug.cpp | 22 #include <thread.h> 71 lookup_symbol(Thread* thread, addr_t address, addr_t* _baseAddress, argument 80 } else if (thread != NULL && thread->team != NULL) { 82 status = elf_debug_lookup_user_symbol_address(thread->team, address, 87 status = image_debug_lookup_user_symbol_address(thread->team, 285 print_stack_frame(Thread *thread, addr_t ip, addr_t fp, addr_t next, argument 301 status = lookup_symbol(thread, ip, &baseAddress, &symbol, &image, 324 if (thread != NULL && thread 359 Thread* thread = thread_get_current_thread(); local 456 arch_debug_contains_call(Thread *thread, const char *symbol, addr_t start, addr_t end) argument [all...] |
H A D | arch_user_debugger.cpp | 12 #include <thread.h> 64 arch_get_thread_debug_cpu_state(Thread *thread, debug_cpu_state *cpuState) argument
|
/haiku/src/system/kernel/arch/arm64/ |
H A D | arch_debug.cpp | 15 #include <thread.h> 63 lookup_symbol(Thread* thread, addr_t address, addr_t* _baseAddress, argument 72 } else if (thread != NULL && thread->team != NULL) { 74 status = elf_debug_lookup_user_symbol_address(thread->team, address, 79 status = image_debug_lookup_user_symbol_address(thread->team, 276 print_stack_frame(Thread *thread, addr_t ip, addr_t fp, addr_t next, argument 292 status = lookup_symbol(thread, ip, &baseAddress, &symbol, &image, 315 if (thread != NULL && thread 350 Thread* thread = thread_get_current_thread(); local 438 arch_debug_contains_call(Thread *thread, const char *symbol, addr_t start, addr_t end) argument [all...] |
/haiku/src/tests/servers/app/newerClipping/ |
H A D | MultiLocker.cpp | 173 thread_id thread = -1; local 175 if (IsWriteLocked(&stack_base, &thread)) { 201 //record thread information 202 fWriterThread = thread; 308 /* this function demonstrates a nice method of determining if the current thread */ 310 /* where the thread's stack is located. Each time a new writer acquires the lock, */ 312 /* current thread and sees if it is a match. If the stack_page matches you are guaranteed */ 313 /* to have the matching thread. If the stack page doesn't match the more traditional */ 317 /* It could be expanded to cache the information of the last thread in the lock, and then if */ 318 /* the same thread return 341 thread_id thread = 0; local 386 thread_id thread = find_thread(NULL); local 424 thread_id thread = find_thread(NULL); local 447 thread_id thread = find_thread(NULL); local [all...] |
/haiku/headers/private/fs_shell/ |
H A D | fssh_os.h | 58 FSSH_B_DO_NOT_RESCHEDULE = 0x02, // thread is not rescheduled 119 fssh_thread_id thread; member in struct:__anon369 153 extern fssh_status_t fssh_kill_thread(fssh_thread_id thread); 154 extern fssh_status_t fssh_resume_thread(fssh_thread_id thread); 155 extern fssh_status_t fssh_suspend_thread(fssh_thread_id thread); 157 extern fssh_status_t fssh_rename_thread(fssh_thread_id thread, 159 extern fssh_status_t fssh_set_thread_priority (fssh_thread_id thread, 162 extern fssh_status_t fssh_wait_for_thread (fssh_thread_id thread, 169 extern fssh_status_t fssh_send_data(fssh_thread_id thread, int32_t code, 174 extern bool fssh_has_data(fssh_thread_id thread); [all...] |
/haiku/src/kits/debug/ |
H A D | TeamDebugger.cpp | 90 thread_id thread = _LoadProgram(args, argCount, traceLoading); local 91 if (thread < 0) 92 return thread; 95 status_t error = Install(thread); 97 kill_team(thread); 149 thread_id thread; local 151 thread = _kern_load_image(flatArgs, flatArgsSize, argCount, envCount, 156 thread = error; 160 return thread;
|
H A D | DebugContext.cpp | 143 BDebugContext::ContinueThread(thread_id thread, bool singleStep) argument 146 message.thread = thread; 156 BDebugContext::SetThreadDebuggingFlags(thread_id thread, int32 flags) argument 159 message.thread = thread; 168 BDebugContext::GetThreadCpuState(thread_id thread, argument 171 return debug_get_cpu_state(&fContext, thread, _messageCode, cpuState);
|
/haiku/src/system/kernel/ |
H A D | UserTimer.cpp | 43 Thread* thread; member in struct:__anon1876::TimerLocker 48 thread(NULL) 57 void Lock(Team* team, Thread* thread) argument 62 this->thread = thread; 64 if (thread != NULL) { 65 thread->AcquireReference(); 66 thread->Lock(); 69 // We don't check thread->team != team here, since this method can be 80 thread 637 Thread* thread = gCPU[i].running_thread; local 1231 create_timer(clockid_t clockID, int32 timerID, Team* team, Thread* thread, uint32 flags, const struct sigevent& event, ThreadCreationAttributes* threadAttributes, bool isDefaultEvent) argument 1376 thread_clock_changed(Thread* thread, bigtime_t changedBy) argument 1417 user_timer_create_thread_timers(Team* team, Thread* thread) argument 1487 Thread* thread = thread_get_current_thread(); local 1549 user_timer_stop_cpu_timers(Thread* thread, Thread* nextThread) argument 1570 user_timer_continue_cpu_timers(Thread* thread, Thread* previousThread) argument 1640 Thread* thread = thread_get_current_thread(); local 1719 Thread* thread = NULL; local [all...] |
/haiku/src/apps/debuganalyzer/model/ |
H A D | Model.cpp | 284 Model::Team::AddThread(Thread* thread) argument 286 return fThreads.BinaryInsert(thread, &Thread::CompareByCreationTimeID); 454 // create a thread wait object 460 // find the thread wait object group 557 Model::SchedulingState::DeleteThread(ThreadSchedulingState* thread) argument 559 delete thread; 577 Thread* thread = threadState->thread; local 578 if (thread->CreationTime() <= lastEventTime 579 && (thread 600 Thread* thread = threadState->thread; local 834 Thread* thread = ThreadByID(event->thread); local 935 Thread* thread = ThreadByID(threadID); local 946 Thread* thread = ThreadByID(threadID); local [all...] |
/haiku/src/apps/debuganalyzer/gui/thread_window/ |
H A D | ThreadWindow.cpp | 27 get_window_name(Model::Thread* thread) argument 31 thread->Name(), thread->ID()); 37 Model::Thread* thread) 40 get_window_name(thread).String(), B_DOCUMENT_WINDOW, 47 fThread(thread), 67 // create a thread model loader 36 ThreadWindow(SubWindowManager* manager, Model* model, Model::Thread* thread) argument
|
/haiku/src/kits/debugger/debugger_interface/core/ |
H A D | CoreFileDebuggerInterface.h | 39 virtual status_t ContinueThread(thread_id thread); 40 virtual status_t StopThread(thread_id thread); 41 virtual status_t SingleStepThread(thread_id thread); 63 virtual status_t GetThreadInfo(thread_id thread, 65 virtual status_t GetCpuState(thread_id thread, 68 virtual status_t SetCpuState(thread_id thread,
|
/haiku/src/system/kernel/scheduler/ |
H A D | scheduler_cpu.cpp | 51 static void _AnalyzeCoreThreads(Thread* thread, void* data); 66 kprintf("thread id priority penalty name\n"); 69 Thread* thread = threadData->GetThread(); local 72 thread, thread->id, thread->priority, 73 thread->priority - threadData->GetEffectivePriority(), 74 thread->name); 130 CPUEntry::PushFront(ThreadData* thread, int32 priority) argument 133 fRunQueue.PushFront(thread, priorit 138 PushBack(ThreadData* thread, int32 priority) argument 146 Remove(ThreadData* thread) argument 298 StartQuantumTimer(ThreadData* thread, bool wasPreempted) argument 430 PushFront(ThreadData* thread, int32 priority) argument 440 PushBack(ThreadData* thread, int32 priority) argument 450 Remove(ThreadData* thread) argument 603 _UnassignThread(Thread* thread, void* data) argument 740 _AnalyzeCoreThreads(Thread* thread, void* data) argument [all...] |
/haiku/src/kits/debug/arch/x86/ |
H A D | arch_debug_support.cpp | 19 arch_debug_get_instruction_pointer(debug_context *context, thread_id thread, argument 24 status_t error = debug_get_cpu_state(context, thread, NULL, &cpuState);
|
/haiku/src/kits/debug/arch/x86_64/ |
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/system/libroot/posix/time/ |
H A D | timer_support.cpp | 62 pthread_thread thread; local 63 __init_pthread(&thread, NULL, NULL); 64 thread.flags |= THREAD_DETACHED; 66 get_user_thread()->pthread = &thread; 95 // If the notification method is SIGEV_THREAD, initialize thread creation 127 status_t error = _kern_delete_timer(timer->id, timer->thread); 140 status_t error = _kern_get_timer(timer->id, timer->thread, &info); 165 status_t error = _kern_set_timer(timer->id, timer->thread, nextTime, 182 status_t error = _kern_get_timer(timer->id, timer->thread, &info);
|
/haiku/src/system/kernel/arch/ppc/ |
H A D | arch_user_debugger.cpp | 9 #include <thread.h> 58 arch_get_thread_debug_cpu_state(Thread* thread, debug_cpu_state* cpuState) argument
|
/haiku/src/kits/debug/arch/sparc/ |
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/system/kernel/arch/sparc/ |
H A D | arch_user_debugger.cpp | 9 #include <thread.h> 58 arch_get_thread_debug_cpu_state(Thread* thread, debug_cpu_state* cpuState) argument
|