/haiku-fatelf/src/apps/debugger/debugger_interface/ |
H A D | DebuggerInterface.cpp | 346 if (message.origin.thread >= 0 && message.origin.nub_port >= 0) 348 message.origin.thread); 375 DebuggerInterface::ContinueThread(thread_id thread) argument 377 continue_thread(fNubPort, thread); 383 DebuggerInterface::StopThread(thread_id thread) argument 385 return debug_thread(thread); 390 DebuggerInterface::SingleStepThread(thread_id thread) argument 393 continueMessage.thread = thread; 472 threadInfo.thread, threadInf 597 GetThreadInfo(thread_id thread, ThreadInfo& info) argument 610 GetCpuState(thread_id thread, CpuState*& _state) argument [all...] |
/haiku-fatelf/src/system/kernel/ |
H A D | team.cpp | 211 out.Print("team forked, new thread %ld", fForkedThread); 344 fTeam(entry.thread), 470 job_control_entry->thread = id; 566 Team and thread spinlock must not be held. 587 Team and thread spinlock must not be held. 904 \param ignoreCurrentRun If \c true and the current thread is one team's 906 updated. Should be used in "thread unscheduled" scheduler callbacks, 907 since although the thread is still running at that time, its time has 920 for (Thread* thread = thread_list; thread ! 1153 Thread* thread = thread_get_current_thread(); local 1529 Thread* thread; local 1669 thread_id thread; local 2378 Thread* thread = thread_get_current_thread(); local 2677 Thread* thread = team->thread_list; local 2696 Thread* thread = team->thread_list; local 2898 Thread* thread = thread_get_current_thread(); local 3107 Thread* thread = team->thread_list; local 3428 user_thread* thread = entry->thread; local 3451 user_thread* thread local 3670 thread_id thread = load_image_internal(flatArgs, size, argCount, envCount, local 4185 Thread* thread = thread_get_current_thread(); local [all...] |
H A D | thread.cpp | 14 #include <thread.h> 72 // thread list 86 Thread* thread; member in struct:UndertakerEntry 89 UndertakerEntry(Thread* thread, team_id teamID) argument 91 thread(thread), 122 Thread* thread = NULL) 129 event.AddInt32("thread", threadID); 130 if (thread != NULL) 131 event.AddPointer("threadStruct", thread); 136 Notify(uint32 eventCode, Thread* thread) argument 270 Thread* thread = new Thread(name, -1, NULL); local 289 Thread* thread = sThreadHash.Lookup(id); local 301 Thread* thread = sThreadHash.Lookup(id); local 505 Thread* thread = sThreadHash.NextElement(&fEntry); local 516 ThreadCreationAttributes(thread_func function, const char* name, int32 priority, void* arg, team_id team, Thread* thread) argument 597 insert_thread_into_team(Team *team, Thread *thread) argument 616 remove_thread_from_team(Team *team, Thread *thread) argument 636 enter_userspace(Thread* thread, UserThreadEntryArguments* args) argument 675 thread_enter_userspace_new_team(Thread* thread, addr_t entryFunction, void* argument1, void* argument2) argument 696 Thread* thread = thread_get_current_thread(); local 749 init_thread_kernel_stack(Thread* thread, const void* data, size_t dataSize) argument 784 create_thread_user_stack(Team* team, Thread* thread, void* _stackBase, size_t stackSize, size_t additionalSize, size_t guardSize, char* nameBuffer) argument [all...] |
H A D | elf.cpp | 34 #include <thread.h>
|
H A D | sem.cpp | 34 #include <thread.h> 74 queued_thread(Thread *thread, int32 count) argument 76 thread(thread), 82 Thread *thread; member in struct:queued_thread 192 kprintf(" %" B_PRId32, entry->thread->id); 336 thread_unblock_locked(entry->thread, B_BAD_SEM_ID); 382 dprintf("thread %" B_PRId32 " tried to delete kernel semaphore " 455 " <last acquirer> - The thread that last acquired the semaphore.\n" 628 /*! Forcibly removes a thread fro 821 Thread *thread = thread_get_current_thread(); local [all...] |
/haiku-fatelf/src/system/kernel/slab/ |
H A D | MemoryManager.cpp | 1002 allocationEntry->thread = find_thread(NULL);
|
/haiku-fatelf/src/system/kernel/debug/ |
H A D | tracing.cpp | 22 #include <thread.h> 846 Thread* thread = thread_get_current_thread(); local 847 if (thread != NULL) { 848 fThread = thread->id; 849 if (thread->team) 850 fTeam = thread->team->id; 1150 } else if (strcmp(token, "thread") == 0) { 1835 " filters \"'thread' <thread>\" (matching entries\n" 1836 " with the given thread I [all...] |
/haiku-fatelf/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 90 thread_id thread = thread_get_current_thread_id(); local 97 if (thread != RECURSIVE_LOCK_HOLDER(lock)) { 100 lock->holder = thread; 112 thread_id thread = thread_get_current_thread_id(); local 118 if (thread != RECURSIVE_LOCK_HOLDER(lock)) { 124 lock->holder = thread; 137 panic("recursive_lock %p unlocked by non-holder thread!\ 444 thread_id thread = thread_get_current_thread_id(); local [all...] |
/haiku-fatelf/src/apps/debugger/controllers/ |
H A D | DebugReportGenerator.cpp | 271 ::Thread* thread = it.Next();) { 274 thread->Name(), thread->IsMainThread() 275 ? "(main)" : "", thread->ID(), 276 UiUtils::ThreadStateToString(thread->State(), 277 thread->StoppedReason())); 279 if (thread->State() == THREAD_STATE_STOPPED) { 280 const BString& stoppedInfo = thread->StoppedReasonInfo(); 287 if (thread->State() == THREAD_STATE_STOPPED) { 291 BReference< ::Thread> threadRef(thread); 308 _DumpDebuggedThreadInfo(BString& _output, ::Thread* thread) argument [all...] |
H A D | TeamDebugger.cpp | 138 ImageInfoPendingThread(image_id image, thread_id thread) argument 141 fThread(thread) 273 ImageInfoPendingThread* thread = fImageInfoPendingThreads->Clear(true); local 274 while (thread != NULL) { 275 ImageInfoPendingThread* next = thread->fNext; 276 delete thread; 277 thread = next; 362 // init thread handler table 439 ::Thread* thread; local 440 error = fTeam->AddThread(*info, &thread); 1237 ::Thread* thread; local 1258 ::Thread* thread = fTeam->ThreadByID(event->RenamedThread()); local 1347 ImageInfoPendingThread* thread = fImageInfoPendingThreads local [all...] |
/haiku-fatelf/src/system/kernel/vm/ |
H A D | vm.cpp | 45 #include <thread.h> 3862 sprintf(name, "idle thread %" B_PRIu32 " kstack", i + 1); 3979 Thread* thread = thread_get_current_thread(); local 3980 if (thread != NULL) 3981 atomic_add(&thread->page_faults_allowed, 1); 3988 Thread* thread = thread_get_current_thread(); local 3989 if (thread != NULL) 3990 atomic_add(&thread->page_faults_allowed, -1); 4016 dprintf("vm_page_fault: kernel thread accessing invalid user " 4024 panic("vm_page_fault: non kernel thread accessin 4049 Thread* thread = thread_get_current_thread(); local 4070 Thread* thread = thread_get_current_thread(); local 5018 Thread* thread = debug_get_debugged_thread(); local [all...] |
H A D | VMCache.cpp | 67 Thread* thread; member in struct:VMCache::PageEventWaiter 905 waiter.thread = thread_get_current_thread(); 912 thread_prepare_to_block(waiter.thread, 0, THREAD_BLOCK_TYPE_OTHER, 1387 thread_unblock_locked(waiter->thread, B_OK);
|
/haiku-fatelf/src/system/libroot/posix/pthread/ |
H A D | pthread.cpp | 40 pthread_thread* thread = (pthread_thread*)_thread; local 42 pthread_exit(thread->entry(thread->entry_argument)); 53 pthread_thread* thread = pthread_self(); local 65 __pthread_key_call_destructors(thread); 67 if ((atomic_or(&thread->flags, THREAD_DEAD) & THREAD_DETACHED) != 0) 68 free(thread); 75 pthread_thread* thread = (pthread_thread*)malloc(sizeof(pthread_thread)); local 76 if (thread == NULL) 79 __init_pthread(thread, entr 86 __init_pthread(pthread_thread* thread, void* (*entry)(void*), void* data) argument 100 __pthread_init_creation_attributes(const pthread_attr_t* pthreadAttributes, pthread_t thread, status_t (*entryFunction)(void*, void*), void* argument1, void* argument2, const char* name, thread_creation_attributes* attributes) argument 171 pthread_thread* thread = get_user_thread()->pthread; local 187 pthread_join(pthread_t thread, void** _value) argument 213 pthread_kill(pthread_t thread, int sig) argument 228 pthread_detach(pthread_t thread) argument 265 pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param) argument 279 pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param) argument 296 get_pthread_thread_id(pthread_t thread) argument [all...] |
/haiku-fatelf/src/kits/game/ |
H A D | WindowScreen.cpp | 503 BWindowScreen::RegisterThread(thread_id thread) argument 519 fDebugThreads[fDebugThreadCount] = thread;
|
/haiku-fatelf/src/apps/debugger/user_interface/gui/team_window/ |
H A D | VariablesView.cpp | 389 void SetStackFrame(Thread* thread, 889 VariablesView::VariableTableModel::SetStackFrame(Thread* thread, argument 892 fThread = thread; 894 fNodeManager->SetStackFrame(thread, stackFrame); 1393 VariablesView::SetStackFrame(Thread* thread, StackFrame* stackFrame) argument 1395 if (thread == fThread && stackFrame == fStackFrame) 1407 fThread = thread;
|
/haiku-fatelf/src/apps/debugger/user_interface/cli/ |
H A D | CliStackTraceCommand.cpp | 21 CliCommand("print a stack trace of the current thread", 23 "Prints a stack trace for the current thread.") 32 // get the current thread 35 Thread* thread = context.CurrentThread(); local 36 if (thread == NULL) { 37 printf("no current thread\n"); 41 if (thread->State() != THREAD_STATE_STOPPED) { 42 printf("Current thread is not stopped. Can't get stack trace.\n"); 47 StackTrace* stackTrace = thread->GetStackTrace(); 52 stackTrace = thread [all...] |
H A D | CliContext.h | 55 // service methods for the input loop thread follow 67 void SetCurrentThread(Thread* thread);
|
H A D | CliContext.cpp | 20 // enough. Should that ever change, we would need a thread-safe 29 Event(int type, Thread* thread = NULL, TeamMemoryBlock* block = NULL) 32 fThreadReference(thread), 190 CliContext::SetCurrentThread(Thread* thread) argument 197 fCurrentThread = thread; 209 // if the thread's stack trace has already been loaded, 210 // set it, otherwise we'll set it when we process the thread's 227 printf("current thread: %" B_PRId32 " \"%s\"\n", fCurrentThread->ID(), 230 printf("no current thread\n"); 307 Thread* thread 367 Thread* thread = event->GetThread(); local [all...] |
/haiku-fatelf/src/apps/processcontroller/ |
H A D | ProcessController.cpp | 110 thread_id thread; member in struct:__anon252 252 thread_id thread; local 295 if (message->FindInt32("thread", &thread) == B_OK) { 297 if (get_thread_info(thread, &thinfo) == B_OK) { 301 "with the thread \"%s\"?"), thinfo.name); 303 B_TRANSLATE("Cancel"), B_TRANSLATE("Debug this thread!"), 304 B_TRANSLATE("Kill this thread!"), B_WIDTH_AS_USUAL, 312 "to kill the thread \"%s\"?"), thinfo.name); 314 B_TRANSLATE("Cancel"), B_TRANSLATE("Kill this thread!"), [all...] |
/haiku-fatelf/src/apps/debugger/jobs/ |
H A D | GetStackTraceJob.cpp | 21 Architecture* architecture, Thread* thread) 23 fKey(thread, JOB_TYPE_GET_STACK_TRACE), 26 fThread(thread) 20 GetStackTraceJob(DebuggerInterface* debuggerInterface, Architecture* architecture, Thread* thread) argument
|
/haiku-fatelf/src/libs/compat/freebsd_network/ |
H A D | bus.cpp | 61 thread_id thread; member in struct:internal_intr 325 wait_for_thread(intr->thread, &status); 354 intr->thread = -1; 373 intr->thread = spawn_kernel_thread(intr_handler, semName, 375 if (intr->thread < B_OK) { 404 resume_thread(intr->thread);
|
/haiku-fatelf/src/system/kernel/arch/arm/paging/32bit/ |
H A D | ARMVMTranslationMap32Bit.cpp | 18 #include <thread.h> 187 Thread* thread = thread_get_current_thread(); local 188 ThreadCPUPinner pinner(thread); 232 Thread* thread = thread_get_current_thread(); local 233 ThreadCPUPinner pinner(thread); 311 // processors (actually even this processor with another thread of the 361 Thread* thread = thread_get_current_thread(); local 362 ThreadCPUPinner pinner(thread); 570 Thread* thread = thread_get_current_thread(); local 571 ThreadCPUPinner pinner(thread); 741 Thread* thread = thread_get_current_thread(); local [all...] |
/haiku-fatelf/src/system/kernel/arch/x86/paging/32bit/ |
H A D | X86PagingMethod32Bit.cpp | 21 #include <thread.h>
|
/haiku-fatelf/src/servers/debug/ |
H A D | DebugServer.cpp | 136 void _PrintStackTrace(thread_id thread); 324 // delete the message count semaphore and wait for the thread to die 392 // spawn the handler thread 398 "handler thread: %s\n", strerror(fHandlerThread)); 615 thread_id thread = load_image(argc, argv, (const char**)environ); local 616 if (thread < 0) { 618 strerror(thread)); 619 return thread; 621 resume_thread(thread); 624 "for team %" B_PRId32 ": thread 647 thread_id thread = message->Data().origin.thread; local 791 _PrintStackTrace(thread_id thread) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/graphics/intel_extreme/ |
H A D | intel_extreme.cpp | 126 thread_id thread = find_thread(NULL); local 128 if (get_thread_info(thread, &threadInfo) != B_OK
|