Searched refs:thread (Results 226 - 250 of 475) sorted by path

1234567891011>>

/haiku/src/tests/system/kernel/
H A Dport_wakeup_test_8.cpp50 thread_id thread = spawn_thread(test_thread, "test thread", B_NORMAL_PRIORITY, NULL); local
51 resume_thread(thread);
58 printf("waiting for thread to terminate\n");
59 wait_for_thread(thread, &s);
H A Dport_wakeup_test_9.cpp50 thread_id thread = spawn_thread(test_thread, "test thread", B_NORMAL_PRIORITY, NULL); local
51 resume_thread(thread);
58 printf("waiting for thread to terminate\n");
59 wait_for_thread(thread, &s);
H A Dselect_close_test.cpp27 thread_id thread = spawn_thread(close_fd, "close fd", B_NORMAL_PRIORITY, local
29 resume_thread(thread);
H A Dsyscall_restart_test.cpp40 thread_id thread = spawn_thread(_ThreadEntry, fName, B_NORMAL_PRIORITY,
42 if (thread < 0)
43 return Error("Failed to spawn thread: %s\n", strerror(thread));
45 resume_thread(thread);
52 kill(thread, SIGINT);
57 wait_for_thread(thread, &result);
H A Dwait_for_objects_test.cpp57 thread_id thread = spawn_thread(notifier_thread, "notifier", local
59 resume_thread(thread);
61 printf("thread: %ld\n", thread);
90 thread,
142 printf("thread %ld quit\n", object);
H A Dyield_test.cpp25 thread_id thread = spawn_thread(looper, "Real-Time Looper", B_REAL_TIME_PRIORITY, NULL); local
26 if (thread < B_OK)
29 resume_thread(thread);
30 wait_for_thread(thread, NULL);
/haiku/src/tests/system/kernel/scheduler/
H A Doverride_types.h21 struct thread { struct
22 struct thread *queue_next; /* i.e. run queue, release queue, etc. */
42 THREAD_STATE_FREE_ON_RESCHED = 7, // free the thread structure upon reschedule
43 // THREAD_STATE_BIRTH // thread is being created
47 struct thread *head;
48 struct thread *tail;
53 thread_is_idle_thread(struct thread *thread) argument
55 return thread->is_idle;
58 void thread_enqueue(struct thread *
[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;
H A DTestContext.h59 thread_id thread; member in struct:GlobalTestContext::ThreadEntry
66 thread(find_thread(NULL))
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);
H A Dkernel_unit_tests.cpp16 #include <thread.h>
188 Thread* thread = thread_get_current_thread(); local
189 if ((thread->flags & THREAD_FLAGS_SYSCALL) != 0) {
/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));
H A Dflock_test.cpp145 thread_id thread = spawn_thread(try_to_lock, "try", B_NORMAL_PRIORITY, (void *)fd); local
146 if (thread < B_OK) {
147 fprintf(stderr, "Could not spawn thread: %s\n", strerror(thread));
150 resume_thread(thread);
166 wait_for_thread(thread, &returnCode);
H A Dmemalign_test.cpp11 void dump_allocations(bool statsOnly, thread_id thread);
H A Dpthread_attr_stack_test.cpp42 pthread_t thread; local
43 ret = pthread_create(&thread, &attr, threadFunction, NULL);
45 ret = pthread_join(thread, NULL);
H A Dtls_concurrency_test.c13 void *thread(void *ignored) { function
23 errno = pthread_create(&thr[j], NULL, thread, NULL);
/haiku/src/tools/fs_shell/
H A Dkernel_export.cpp25 fssh_wait_for_thread(fssh_thread_id thread, fssh_status_t *_returnCode) argument
H A Dthread.cpp16 fssh_kill_thread(fssh_thread_id thread) argument
18 return kill_thread(thread);
23 fssh_resume_thread(fssh_thread_id thread) argument
25 return resume_thread(thread);
30 fssh_suspend_thread(fssh_thread_id thread) argument
32 return suspend_thread(thread);
/haiku/build/scripts/
H A Dbuild_haiku_image311 $mkindex -t string MAIL:thread
/haiku/headers/build/os/app/
H A DRoster.h41 thread_id thread; member in struct:app_info
152 uint32 flags, team_id team, thread_id thread,
156 void SetThread(team_id team, thread_id thread) const;
157 status_t SetThreadAndTeam(uint32 entryToken, thread_id thread,
159 status_t CompleteRegistration(team_id team, thread_id thread,
/haiku/headers/compatibility/bsd/
H A Dpthread.h21 extern int pthread_attr_get_np(pthread_t thread, pthread_attr_t* attr);
H A Dsignal.h25 int pthread_sigqueue(pthread_t thread, int sig, const union sigval value);
/haiku/headers/compatibility/gnu/
H A Dpthread.h20 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/os/app/
H A DRoster.h22 thread_id thread; member in struct:app_info
154 team_id team, thread_id thread,
162 thread_id thread) const;
165 thread_id thread, team_id team,
169 thread_id thread, port_id port) const;
/haiku/headers/os/drivers/
H A DKernelExport.h185 extern int send_signal_etc(pid_t thread, uint signal, uint32 flags);

Completed in 128 milliseconds

1234567891011>>