/haiku/src/tests/system/kernel/ |
H A D | port_wakeup_test_8.cpp | 50 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 D | port_wakeup_test_9.cpp | 50 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 D | select_close_test.cpp | 27 thread_id thread = spawn_thread(close_fd, "close fd", B_NORMAL_PRIORITY, local 29 resume_thread(thread);
|
H A D | syscall_restart_test.cpp | 40 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 D | wait_for_objects_test.cpp | 57 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 D | yield_test.cpp | 25 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 D | override_types.h | 21 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 D | TestContext.cpp | 83 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 D | TestContext.h | 59 thread_id thread; member in struct:GlobalTestContext::ThreadEntry 66 thread(find_thread(NULL))
|
H A D | TestThread.h | 36 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 D | kernel_unit_tests.cpp | 16 #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 D | abort_test.cpp | 26 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 D | flock_test.cpp | 145 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 D | memalign_test.cpp | 11 void dump_allocations(bool statsOnly, thread_id thread);
|
H A D | pthread_attr_stack_test.cpp | 42 pthread_t thread; local 43 ret = pthread_create(&thread, &attr, threadFunction, NULL); 45 ret = pthread_join(thread, NULL);
|
H A D | tls_concurrency_test.c | 13 void *thread(void *ignored) { function 23 errno = pthread_create(&thr[j], NULL, thread, NULL);
|
/haiku/src/tools/fs_shell/ |
H A D | kernel_export.cpp | 25 fssh_wait_for_thread(fssh_thread_id thread, fssh_status_t *_returnCode) argument
|
H A D | thread.cpp | 16 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 D | build_haiku_image | 311 $mkindex -t string MAIL:thread
|
/haiku/headers/build/os/app/ |
H A D | Roster.h | 41 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 D | pthread.h | 21 extern int pthread_attr_get_np(pthread_t thread, pthread_attr_t* attr);
|
H A D | signal.h | 25 int pthread_sigqueue(pthread_t thread, int sig, const union sigval value);
|
/haiku/headers/compatibility/gnu/ |
H A D | pthread.h | 20 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 D | Roster.h | 22 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 D | KernelExport.h | 185 extern int send_signal_etc(pid_t thread, uint signal, uint32 flags);
|