Searched refs:thread (Results 26 - 50 of 475) sorted by relevance

1234567891011>>

/haiku/headers/private/kernel/
H A Dsyscall_restart.h11 #include <thread.h>
24 Thread* thread = thread_get_current_thread(); local
25 if ((thread->flags & THREAD_FLAGS_SYSCALL_RESTARTED) != 0)
26 timeout = *(bigtime_t*)thread->syscall_restart.parameters;
48 Thread* thread = thread_get_current_thread(); local
49 if ((thread->flags & THREAD_FLAGS_SYSCALL_RESTARTED) != 0) {
50 timeout = *(bigtime_t*)thread->syscall_restart.parameters;
71 Thread* thread = thread_get_current_thread(); local
72 *(bigtime_t*)thread->syscall_restart.parameters = timeout;
73 atomic_or(&thread
85 Thread* thread = thread_get_current_thread(); local
96 Thread* thread = thread_get_current_thread(); local
112 Thread* thread = thread_get_current_thread(); local
[all...]
/haiku/src/tests/system/libroot/posix/
H A Dabort_test.cpp26 thread_id thread = spawn_thread(&abort_thread, "abort test", local
28 resume_thread(thread);
30 status_t status = wait_for_thread(thread, NULL);
31 fprintf(stderr, "abort thread aborted: %s\n", strerror(status));
/haiku/src/build/libroot/
H A Dthread.cpp11 kill_thread(thread_id thread) argument
18 resume_thread(thread_id thread) argument
25 suspend_thread(thread_id thread) argument
/haiku/src/libs/compat/freebsd_iflib/compat/sys/
H A Dkthread.h16 void sched_prio(struct thread* td, u_char prio);
17 void sched_add(struct thread* td, int flags);
20 struct thread** newtdp, int flags, int pages, const char* fmt, ...);
/haiku/headers/private/debugger/model/
H A DExpressionValues.h31 Thread* thread,
35 Thread* thread,
39 Thread* thread,
42 Thread* thread,
45 Thread* thread,
67 ExpressionValues::GetValue(FunctionID* function, Thread* thread, argument
70 return GetValue(function, thread, &expression, _value);
75 ExpressionValues::HasValue(FunctionID* function, Thread* thread, argument
78 return HasValue(function, thread, &expression);
/haiku/src/kits/debugger/model/
H A DThreadInfo.cpp27 ThreadInfo::ThreadInfo(team_id team, thread_id thread, const BString& name) argument
30 fThread(thread),
37 ThreadInfo::SetTo(team_id team, thread_id thread, const BString& name) argument
40 fThread = thread;
H A DExpressionValues.cpp19 ::Thread* thread; member in struct:ExpressionValues::Key
22 Key(FunctionID* function, ::Thread* thread, const BString& expression) argument
25 thread(thread),
32 return function->HashValue() ^ thread->ID()
39 && thread->ID() == other.thread->ID()
49 ValueEntry(FunctionID* function, ::Thread* thread, argument
52 Key(function, thread, expression)
55 thread
141 GetValue(FunctionID* function, ::Thread* thread, const BString* expression, BVariant& _value) const argument
154 HasValue(FunctionID* function, ::Thread* thread, const BString* expression) const argument
162 SetValue(FunctionID* function, ::Thread* thread, const BString& expression, const BVariant& value) argument
[all...]
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A DKPPPReportManager.cpp19 thread_id thread; member in struct:report_sender_info
28 KPPPReportManager::SendReport(info->thread, &info->report);
52 /*! \brief Send the given report message to the given thread.
54 \param thread The report receiver.
60 KPPPReportManager::SendReport(thread_id thread, const ppp_report_packet *report) argument
65 if (thread == find_thread(NULL)) {
67 info->thread = thread;
74 send_data_with_timeout(thread, PPP_REPORT_CODE, &report, sizeof(report),
83 \param thread Th
87 EnableReports(ppp_report_type type, thread_id thread, int32 flags) argument
106 DisableReports(ppp_report_type type, thread_id thread) argument
135 DoesReport(ppp_report_type type, thread_id thread) argument
[all...]
/haiku/src/system/kernel/arch/arm64/
H A Darch_thread.cpp5 #include <thread.h>
9 #include <arch/thread.h>
13 #include <thread.h>
61 arch_thread_init_thread_struct(Thread *thread) argument
68 arch_thread_init_kthread_stack(Thread* thread, void* _stack, void* _stackTop, argument
71 memset(&thread->arch_info, 0, sizeof(arch_thread));
72 thread->arch_info.regs[10] = (uint64_t)data;
73 thread->arch_info.regs[11] = (uint64_t)function;
74 thread->arch_info.regs[12] = (uint64_t)_stackTop;
79 arch_thread_init_tls(Thread *thread) argument
88 arm64_set_tls_context(Thread *thread) argument
114 arch_thread_enter_userspace(Thread *thread, addr_t entry, void *arg1, void *arg2) argument
145 arch_on_signal_stack(Thread *thread) argument
152 arch_setup_signal_frame(Thread *thread, struct sigaction *sa, struct signal_frame_data *signalFrameData) argument
[all...]
/haiku/src/tests/kits/app/
H A DRegistrarThreadManagerTest.cpp32 // Base test thread class
49 // Test thread that terminates quickly
65 // Test thread that never terminates, but pays attention
86 // Test thread that never terminates and completely ignores
173 RegistrarThread *thread = new TerminatingThread(name, B_NORMAL_PRIORITY, managerMessenger);
174 CHK(thread != NULL);
175 CHK(thread->InitCheck() == B_OK);
176 CHK(manager.LaunchThread(thread) == B_OK);
183 RegistrarThread *thread = new WellBehavedInfiniteThread(name, B_NORMAL_PRIORITY, managerMessenger);
184 CHK(thread !
[all...]
/haiku/src/apps/debuganalyzer/model_loader/
H A DModelLoader.cpp172 ExtendedThreadSchedulingState(Model::Thread* thread) argument
174 Model::ThreadSchedulingState(thread),
293 Model::ThreadSchedulingState* thread local
295 return thread != NULL
296 ? static_cast<ExtendedThreadSchedulingState*>(thread) : NULL;
301 virtual void DeleteThread(Model::ThreadSchedulingState* thread) argument
303 delete static_cast<ExtendedThreadSchedulingState*>(thread);
738 for (int32 i = 0; Model::Thread* thread = fModel->ThreadAt(i); i++) {
740 = fState->LookupThread(thread->ID());
757 fState->LookupThread(event->thread)
835 _SetThreadIORequests(Model::Thread* thread, Model::IORequest** requests, size_t requestCount) argument
917 ExtendedThreadSchedulingState* thread = fState->LookupThread(event->thread); local
935 ExtendedThreadSchedulingState* thread = fState->LookupThread(event->thread); local
1040 ExtendedThreadSchedulingState* thread = fState->LookupThread(event->thread); local
1077 ExtendedThreadSchedulingState* thread = fState->LookupThread(event->thread); local
1139 ExtendedThreadSchedulingState* thread = fState->LookupThread(event->thread); local
1227 Model::Thread* thread = fModel->AddThread(event, fState->LastEventTime()); local
1308 _AddThreadWaitObject(ExtendedThreadSchedulingState* thread, uint32 type, addr_t object) argument
[all...]
/haiku/src/apps/debuganalyzer/gui/main_window/
H A DThreadsPage.cpp39 Model::Thread* thread = fModel->ThreadAt(rowIndex); local
40 if (thread == NULL)
45 value.SetTo(thread->ID());
48 value.SetTo(thread->Name(), B_VARIANT_DONT_COPY_DATA);
53 Model::Team* team = thread->GetTeam();
60 value.SetTo(thread->CreationTime());
63 value.SetTo(thread->DeletionTime());
66 value.SetTo(thread->Runs());
69 value.SetTo(thread->TotalRunTime());
72 value.SetTo(thread
193 Model::Thread* thread = fModel->ThreadAt(rowIndex); local
[all...]
/haiku/src/system/kernel/arch/x86/
H A Darch_thread.cpp10 #include <arch/thread.h>
20 #include <thread.h>
39 find_previous_iframe(Thread* thread, addr_t frame) argument
42 while (frame >= thread->kernel_stack_base
43 && frame < thread->kernel_stack_top) {
69 Returns the current iframe structure of the running thread.
83 \brief Returns the current thread's topmost (i.e. most recent)
87 the thread is a kernel thread).
104 /*! \brief Like x86_get_user_iframe(), just for the given thread
108 x86_get_thread_user_iframe(Thread *thread) argument
162 x86_initial_return_to_userland(Thread* thread, iframe* frame) argument
187 arch_thread_init_tls(Thread *thread) argument
243 arch_on_signal_stack(Thread *thread) argument
[all...]
H A Darch_debug.cpp26 #include <thread.h>
41 static bool is_kernel_stack_address(Thread* thread, addr_t address);
70 bool onKernelStack, Thread* thread)
75 && is_kernel_stack_address(thread, bp + sizeof(frame) - 1)) {
106 lookup_symbol(Thread* thread, addr_t address, addr_t* _baseAddress, argument
115 } else if (thread != NULL && thread->team != NULL) {
117 status = elf_debug_lookup_user_symbol_address(thread->team, address,
122 status = image_debug_lookup_user_symbol_address(thread->team,
373 print_stack_frame(Thread* thread, addr_ argument
69 get_next_frame_no_debugger(addr_t bp, addr_t* _next, addr_t* _ip, bool onKernelStack, Thread* thread) argument
471 Thread* thread = NULL; local
530 is_kernel_stack_address(Thread* thread, addr_t address) argument
550 is_iframe(Thread* thread, addr_t frame) argument
562 find_previous_iframe(Thread* thread, addr_t frame) argument
577 get_previous_iframe(Thread* thread, iframe* frame) argument
587 get_current_iframe(Thread* thread) argument
684 Thread* thread = NULL; local
760 print_call(Thread *thread, addr_t eip, addr_t ebp, addr_t nextEbp, int32 argCount) argument
840 Thread *thread = NULL; local
933 Thread* thread = NULL; local
967 is_calling(Thread* thread, addr_t ip, const char* pattern, addr_t start, addr_t end) argument
1063 arch_debug_contains_call(Thread* thread, const char* symbol, addr_t start, addr_t end) argument
1140 Thread* thread = thread_get_current_thread(); local
[all...]
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DThreadLocal.cpp50 thread_id thread = find_thread(NULL);
53 if (fFreeHandler &&fMap->ContainsKey(thread))
54 fFreeHandler->Free(fMap->Get(thread));
56 status_t error = fMap->Put(thread, data);
67 thread_id thread = find_thread(NULL);
70 if (fMap->ContainsKey(thread))
71 fFreeHandler->Free(fMap->Remove(thread));
73 fMap->Remove(thread);
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dthread.h26 get_thread_id(Thread* thread) argument
28 return (thread_id)(addr_t)thread;
/haiku/src/tests/system/kernel/unit/
H A DTestThread.h36 TestThread* thread = (TestThread*)data; local
37 (thread->fObject->*thread->fMethod)(
38 *GlobalTestContext::Current()->CurrentContext(), thread->fArgument);
39 delete thread;
56 TestThread<ObjectType, ParameterType>* thread local
59 if (thread == NULL)
62 return thread->Spawn(name, priority);
/haiku/src/bin/debug/
H A Ddebug_utils.h15 status_t set_thread_debugging_flags(port_id nubPort, thread_id thread,
17 status_t continue_thread(port_id nubPort, thread_id thread);
/haiku/src/system/kernel/scheduler/
H A Dscheduler_tracing.h12 #include <thread.h>
22 SchedulerTraceEntry(Thread* thread) argument
24 fID(thread->id)
39 EnqueueThread(Thread* thread, int32 effectivePriority) argument
41 SchedulerTraceEntry(thread),
42 fPriority(thread->priority),
45 fName = alloc_tracing_buffer_strcpy(thread->name, B_OS_NAME_LENGTH,
63 RemoveThread(Thread* thread) argument
65 SchedulerTraceEntry(thread),
66 fPriority(thread
82 ScheduleThread(Thread* thread, Thread* previous) argument
[all...]
H A Dscheduling_analysis.cpp162 thread_id thread; member in struct:SchedulingAnalysis::ThreadWaitObjectKey
166 ThreadWaitObjectKey(thread_id thread, uint32 type, void* object) argument
168 thread(thread),
176 return thread ^ type ^ (uint32)(addr_t)object;
182 ThreadWaitObject(thread_id thread, WaitObject* waitObject) argument
184 this->thread = thread;
193 return thread ^ wait_object->type ^ (uint32)(addr_t)wait_object->object;
202 return key->thread
294 ThreadWaitObjectFor(thread_id thread, uint32 type, void* object) const argument
303 Thread* thread = ThreadFor(id); local
387 AddThreadWaitObject(Thread* thread, uint32 type, void* object) argument
454 Thread* thread = dynamic_cast<Thread*>(object); local
644 Thread* thread = manager.ThreadFor(entry->ThreadID()); local
748 Thread* thread = manager.ThreadFor(entry->ThreadID()); local
770 Thread* thread = manager.ThreadFor(entry->ThreadID()); local
[all...]
H A Dscheduler.cpp14 /*! The thread scheduler */
46 void operator()(ThreadData* thread);
78 static void enqueue(Thread* thread, bool newOne);
82 ThreadEnqueuer::operator()(ThreadData* thread) argument
84 enqueue(thread->GetThread(), false);
89 scheduler_dump_thread_data(Thread* thread) argument
91 thread->scheduler_data->Dump();
96 enqueue(Thread* thread, bool newOne) argument
100 ThreadData* threadData = thread->scheduler_data;
103 T(EnqueueThread(thread, threadPriorit
149 scheduler_enqueue_in_run_queue(Thread *thread) argument
171 scheduler_set_thread_priority(Thread *thread, int32 priority) argument
245 continue_cpu_timers(Thread* thread, cpu_ent* cpu) argument
258 thread_resumes(Thread* thread) argument
274 scheduler_new_thread_entry(Thread* thread) argument
466 Thread* thread = thread_get_current_thread(); local
477 scheduler_on_thread_create(Thread* thread, bool idleThread) argument
487 scheduler_on_thread_init(Thread* thread) argument
505 scheduler_on_thread_destroy(Thread* thread) argument
797 Thread* thread; local
[all...]
/haiku/src/system/kernel/
H A Dsignal.cpp33 #include <thread.h>
754 /*! Updates the given thread's Thread::flags field according to what signals are
759 update_thread_signals_flag(Thread* thread) argument
761 sigset_t mask = ~thread->sig_block_mask;
762 if ((thread->AllPendingSignals() & mask) != 0)
763 atomic_or(&thread->flags, THREAD_FLAGS_SIGNALS_PENDING);
765 atomic_and(&thread->flags, ~THREAD_FLAGS_SIGNALS_PENDING);
769 /*! Updates the current thread's Thread::flags field according to what signals
787 for (Thread* thread = team->thread_list; thread !
806 notify_debugger(Thread* thread, Signal* signal, struct sigaction& handler, bool deadly) argument
854 dequeue_thread_or_team_signal(Thread* thread, sigset_t nonBlocked, Signal& buffer) argument
873 setup_signal_frame(Thread* thread, struct sigaction* action, Signal* signal, sigset_t signalMask) argument
932 handle_signals(Thread* thread) argument
1332 Thread* thread = thread_get_current_thread(); local
1351 has_signals_pending(Thread* thread) argument
1393 send_signal_to_thread_locked(Thread* thread, uint32 signalNumber, Signal* signal, uint32 flags) argument
1539 send_signal_to_thread(Thread* thread, const Signal& signal, uint32 flags) argument
1586 Thread* thread = Thread::Get(threadID); local
1955 Thread* thread = thread_get_current_thread(); local
2068 Thread* thread = thread_get_current_thread(); local
2161 Thread* thread = thread_get_current_thread(); local
2200 Thread* thread = thread_get_current_thread(); local
2357 Thread* thread = thread_get_current_thread(); local
2404 Thread *thread = thread_get_current_thread(); local
2483 Thread *thread = thread_get_current_thread(); local
[all...]
/haiku/src/system/libroot/os/
H A Dthread.c39 pthread_thread* thread = (pthread_thread*)_thread; local
44 returnCode = entry(thread->entry_argument);
107 pthread_thread* thread; local
110 thread = __allocate_pthread(NULL, data);
111 if (thread == NULL)
117 __pthread_init_creation_attributes(NULL, thread, &thread_entry, entry,
118 thread, name, &attributes);
119 thread->flags |= THREAD_DETACHED;
125 free(thread);
127 thread
136 kill_thread(thread_id thread) argument
143 resume_thread(thread_id thread) argument
150 suspend_thread(thread_id thread) argument
157 rename_thread(thread_id thread, const char *name) argument
164 set_thread_priority(thread_id thread, int32 priority) argument
180 wait_for_thread(thread_id thread, status_t *_returnCode) argument
187 wait_for_thread_etc(thread_id thread, uint32 flags, bigtime_t timeout, status_t *_returnCode) argument
214 _get_thread_info(thread_id thread, thread_info *info, size_t size) argument
234 send_data(thread_id thread, int32 code, const void *buffer, size_t bufferSize) argument
248 has_data(thread_id thread) argument
[all...]
/haiku/src/kits/debugger/jobs/
H A DGetCPUStateJob.cpp18 ::Thread* thread)
20 fKey(thread, JOB_TYPE_GET_CPU_STATE),
22 fThread(thread)
17 GetCpuStateJob(DebuggerInterface* debuggerInterface, ::Thread* thread) argument
/haiku/src/apps/processcontroller/
H A DThreadBarMenu.cpp44 fThreadsRec[k++].thread = -1;
81 while (k < fThreadsRecCount && fThreadsRec[k].thread != info.thread)
85 while (k < lastk && fThreadsRec[k].thread != info.thread)
91 // printf("*** Thread %d %s/%s, user %lld, kernel %lld\n", info.thread, info.name, info.user_time, info.kernel_time);
92 // this is a new thread...
94 while (k < fThreadsRecCount && !(fThreadsRec[k].thread == -1 || fThreadsRec[k].last_round+1 < fRound))
101 fThreadsRec[lastk++].thread = -1;
103 fThreadsRec[k].thread
[all...]

Completed in 159 milliseconds

1234567891011>>