Searched refs:thread (Results 201 - 225 of 475) sorted by relevance

1234567891011>>

/haiku/src/tests/system/libroot/posix/
H A Dpthread_sigqueue.cpp94 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/kits/debugger/model/
H A DTeam.cpp105 while (Thread* thread = fThreads.RemoveHead())
106 thread->ReleaseReference();
128 Team::AddThread(Thread* thread) argument
130 fThreads.Add(thread);
131 _NotifyThreadAdded(thread);
139 Thread* thread = new(std::nothrow) Thread(this, threadInfo.ThreadID()); local
140 if (thread == NULL)
143 status_t error = thread->Init();
145 delete thread;
149 thread
160 RemoveThread(Thread* thread) argument
170 Thread* thread = ThreadByID(threadID); local
693 NotifyThreadStateChanged(Thread* thread) argument
704 NotifyThreadCpuStateChanged(Thread* thread) argument
715 NotifyThreadStackTraceChanged(Thread* thread) argument
888 _NotifyThreadAdded(Thread* thread) argument
898 _NotifyThreadRemoved(Thread* thread) argument
941 ThreadEvent(uint32 type, Thread* thread) argument
[all...]
/haiku/src/apps/debuganalyzer/model_loader/
H A DAbstractModelLoader.cpp49 // spawn the loader thread
72 thread_id thread = fLoaderThread;
80 wait_for_thread(thread, NULL);
/haiku/src/apps/debugger/user_interface/gui/team_window/
H A DThreadListView.h32 void SetThread(Thread* thread);
67 virtual void ThreadSelectionChanged(Thread* thread) = 0;
/haiku/src/bin/debug/profile/
H A DTeam.h30 status_t InitThread(Thread* thread);
32 void RemoveThread(Thread* thread);
/haiku/src/tests/kits/app/broster/
H A DGetAppInfoTester.cpp39 // get the thread
40 thread_id thread = -1; local
44 if (thread < 0 || threadInfo.thread < thread)
45 thread = threadInfo.thread;
53 //" thread: %ld vs %ld\n"
57 //" signature: `%s' vs `%s'\n", info.thread, thread, inf
[all...]
/haiku/headers/private/app/
H A DLooperList.h62 FindThreadPred(thread_id tid) : thread(tid) {}
64 thread_id thread; member in struct:BPrivate::BLooperList::FindThreadPred
/haiku/src/system/libroot/posix/malloc_debug/
H A Dmalloc_debug_api.h36 void (*dump_allocations)(bool statsOnly, thread_id thread);
40 thread_id *thread);
/haiku/src/kits/media/legacy/
H A DDeprecated.cpp76 status_t media_realtime_init_thread(thread_id thread, size_t stack_used,
100 // Given a thread ID, and an optional indication of what the thread is
101 // doing in "flags", prepare the thread for real-time media performance.
102 // Currently, this means locking the thread stack, up to size_used bytes,
105 // from profiling the thread; typically in the 32-64kB range.
108 media_realtime_init_thread(thread_id thread, size_t stack_used, uint32 flags) argument
/haiku/headers/private/shared/
H A DRWLocker.h13 // * The ownership of a lock is bound to the thread that requested the lock;
14 // the same thread has to call Unlock() later.
19 // the current thread. No one can overtake. E.g. if a thread owns a read
32 // not fail, because in that case the thread could not be given back
33 // its read lock(s), since another thread may have been given a write lock
38 // another thread already owns or has requested a read or write lock.
60 // One thread at maximum waits at the mutex, the others at the queueing
111 int32 _NewReadLockInfo(thread_id thread,
115 int32 _IndexOf(thread_id thread) cons
[all...]
/haiku/src/add-ons/kernel/network/ppp/shared/libppp/headers/
H A DPPPInterface.h52 bool EnableReports(ppp_report_type type, thread_id thread,
54 bool DisableReports(ppp_report_type type, thread_id thread) const;
H A DPPPManager.h51 bool EnableReports(ppp_report_type type, thread_id thread,
53 bool DisableReports(ppp_report_type type, thread_id thread) const;
/haiku/src/system/libroot/os/
H A Dscheduler.c61 estimate_max_scheduling_latency(thread_id thread) argument
63 return _kern_estimate_max_scheduling_latency(thread);
/haiku/src/system/kernel/vm/
H A DVMAddressSpace.cpp22 #include <thread.h>
238 Thread* thread = thread_get_current_thread(); local
240 if (thread != NULL && thread->team->address_space != NULL)
241 return thread->team->id;
250 Thread* thread = thread_get_current_thread(); local
252 if (thread != NULL) {
253 VMAddressSpace* addressSpace = thread->team->address_space;
/haiku/src/servers/app/
H A DMultiLocker.cpp291 // record thread information
357 thread_id thread = find_thread(NULL);
358 return fDebugArray[thread % fMaxThreads] > 0;
366 /* this array does not need to be locked because each running thread */
371 /* array. If register thread is ever called and the count is not 0 then */
386 thread_id thread = find_thread(NULL); local
388 if (fDebugArray[thread % fMaxThreads] != 0)
391 fDebugArray[thread % fMaxThreads]++;
398 thread_id thread = find_thread(NULL); local
400 ASSERT(fDebugArray[thread
[all...]
/haiku/src/apps/processcontroller/
H A DPriorityMenu.cpp19 PriorityMenu::PriorityMenu(thread_id thread, int32 priority) argument
21 fThreadID(thread),
77 message->AddInt32("thread", fThreadID);
/haiku/headers/private/kernel/vm/
H A Dvm_types.h224 # include <thread.h>
248 "current thread, current accessor is: %" B_PRId32 "@! page -m %p; "
258 thread_id thread = page->accessing_thread; local
259 if (thread != thread_get_current_thread_id()) {
262 page->physical_page_number * B_PAGE_SIZE, thread, page, thread);
283 # define DEBUG_PAGE_ACCESS_TRANSFER(page, thread) \
284 vm_page_debug_access_transfer(page, thread)
289 # define DEBUG_PAGE_ACCESS_TRANSFER(page, thread) do {} while (false)
/haiku/src/apps/haikudepot/ui/
H A DToLatestUserUsageConditionsWindow.h45 void _SetWorkerThread(thread_id thread);
46 void _SetWorkerThreadLocked(thread_id thread);
/haiku/headers/private/kernel/
H A Duser_debugger.h41 // thread of that team.
64 // the port the nub thread is waiting on for commands from the debugger
69 // thread that caused the debugger to be attached; -1 for manual
94 // to get a thread reference, lock the thread, or one accesses the structure
95 // of the current thread.
112 // not held (at least if it is certain, that the thread struct won't
115 // the port the thread is waiting on for commands from the nub thread
123 // profiling related part; if samples != NULL, the thread i
[all...]
/haiku/headers/os/kernel/
H A Ddebugger.h56 extern status_t debug_thread(thread_id thread);
83 // new thread handling
89 // per-thread debugging flags
91 // event mask: If a flag is set, the thread will stop when the respective
97 // child thread handling
120 // Value indicating how a stopped thread shall continue.
151 // messages to the debug nub thread
156 B_DEBUG_MESSAGE_SET_THREAD_FLAGS, // set a thread's debugging flags
157 B_DEBUG_MESSAGE_CONTINUE_THREAD, // continue a stopped thread
158 B_DEBUG_MESSAGE_SET_CPU_STATE, // change a stopped thread'
265 thread_id thread; // the thread member in struct:__anon39
272 thread_id thread; // the thread member in struct:__anon40
280 thread_id thread; // the thread member in struct:__anon41
288 thread_id thread; // the thread member in struct:__anon42
341 thread_id thread; // the thread member in struct:__anon50
358 thread_id thread; // the thread member in struct:__anon51
402 thread_id thread; // thread to profile member in struct:__anon56
423 thread_id thread; // thread to profile member in struct:__anon58
470 thread_id thread; // the thread being the event origin member in struct:__anon62
[all...]
/haiku/src/tests/system/kernel/unit/
H A DTestContext.cpp83 thread_id thread = find_thread(NULL); local
89 if (entry->thread == thread)
122 thread_id thread = spawn_kernel_thread(_ThreadEntry, name, priority,
124 if (thread < 0) {
126 return thread;
129 return thread;
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_attr.c21 int __pthread_attr_get_np(pthread_t thread, pthread_attr_t *_attr);
22 int __pthread_getattr_np(pthread_t thread, pthread_attr_t *_attr);
245 __pthread_attr_get_np(pthread_t thread, pthread_attr_t *_attr) argument
254 status = _kern_get_thread_info(thread->id, &info);
258 if ((thread->flags & THREAD_DETACHED) != 0)
273 __pthread_getattr_np(pthread_t thread, pthread_attr_t *_attr) argument
277 err = __pthread_attr_get_np(thread, _attr);
/haiku/src/system/kernel/
H A Dmain.cpp230 // Start a thread to finish initializing the rest of the system. Note,
232 TRACE("spawning main2 thread\n");
233 thread_id thread = spawn_kernel_thread(&main2, "main2", local
235 resume_thread(thread);
278 // thread, or otherwise the scheduler would be seriously unhappy.
394 thread_id thread; local
396 thread = load_image(argc, args, NULL);
397 if (thread >= B_OK) {
398 resume_thread(thread);
402 args[0], thread);
[all...]
H A Dteam.cpp225 out.Print("team forked, new thread %" B_PRId32, fForkedThread);
358 fTeam(entry.thread),
458 job_control_entry->thread = id;
588 Team and thread spinlock must not be held.
609 Team and thread spinlock must not be held.
929 \param ignoreCurrentRun If \c true and the current thread is one team's
931 updated. Should be used in "thread unscheduled" scheduler callbacks,
932 since although the thread is still running at that time, its time has
945 for (Thread* thread = thread_list; thread !
1182 Thread* thread = thread_get_current_thread(); local
1578 Thread* thread; local
1735 thread_id thread; local
2495 Thread* thread = thread_get_current_thread(); local
2818 Thread* thread = team->thread_list; local
2837 Thread* thread = team->thread_list; local
3048 Thread* thread = thread_get_current_thread(); local
3269 Thread* thread = team->thread_list; local
3582 user_thread* thread = entry->thread; local
3605 user_thread* thread local
3824 thread_id thread = load_image_internal(flatArgs, size, argCount, envCount, local
4345 Thread* thread = thread_get_current_thread(); local
[all...]
/haiku/src/add-ons/kernel/network/dns_resolver/kernel_add_on/
H A Ddns_resolver.cpp54 thread_id thread = load_image_etc(1, args, NULL, B_NORMAL_PRIORITY, local
56 if (thread < B_OK) {
59 return thread;
62 set_port_owner(gPortRequest, thread);
63 set_port_owner(gPortReply, thread);
65 result = resume_thread(thread);
67 kill_thread(thread);

Completed in 145 milliseconds

1234567891011>>