HelenOS sources
thread 44 kernel/arch/amd64/src/proc/thread.c errno_t thread_create_arch(thread_t *thread, thread_flags_t flags)
thread 49 kernel/arch/amd64/src/proc/thread.c thread->arch.kstack_rsp =
thread 50 kernel/arch/amd64/src/proc/thread.c (uintptr_t) &thread->kstack[PAGE_SIZE - sizeof(istate_t)];
thread 42 kernel/arch/ia64/include/arch/drivers/ski.h thread_t *thread;
thread 171 kernel/arch/ia64/src/drivers/ski.c instance->thread = thread_create(kskipoll, instance, TASK,
thread 174 kernel/arch/ia64/src/drivers/ski.c if (!instance->thread) {
thread 260 kernel/arch/ia64/src/drivers/ski.c thread_start(instance->thread);
thread 41 kernel/arch/riscv64/include/arch/proc/thread.h #define thr_constructor_arch(thread)
thread 42 kernel/arch/riscv64/include/arch/proc/thread.h #define thr_destructor_arch(thread)
thread 42 kernel/arch/sparc64/include/arch/drivers/niagara.h thread_t *thread;
thread 184 kernel/arch/sparc64/src/drivers/niagara.c instance->thread = thread_create(kniagarapoll, NULL, TASK,
thread 187 kernel/arch/sparc64/src/drivers/niagara.c if (!instance->thread) {
thread 255 kernel/arch/sparc64/src/drivers/niagara.c thread_start(instance->thread);
thread 44 kernel/genarch/include/genarch/kbrd/kbrd.h thread_t *thread;
thread 43 kernel/genarch/include/genarch/srln/srln.h thread_t *thread;
thread 177 kernel/genarch/src/kbrd/kbrd.c instance->thread = thread_create(kkbrd, (void *) instance,
thread 180 kernel/genarch/src/kbrd/kbrd.c if (!instance->thread) {
thread 202 kernel/genarch/src/kbrd/kbrd.c thread_start(instance->thread);
thread 175 kernel/genarch/src/kbrd/kbrd_at.c instance->thread = thread_create(kkbrd, (void *) instance, TASK, 0,
thread 178 kernel/genarch/src/kbrd/kbrd_at.c if (!instance->thread) {
thread 200 kernel/genarch/src/kbrd/kbrd_at.c thread_start(instance->thread);
thread 137 kernel/genarch/src/srln/srln.c instance->thread = thread_create(ksrln, (void *) instance,
thread 140 kernel/genarch/src/srln/srln.c if (!instance->thread) {
thread 158 kernel/genarch/src/srln/srln.c thread_start(instance->thread);
thread 63 kernel/generic/include/arch.h struct thread;
thread 78 kernel/generic/include/arch.h struct thread *thread; /**< Current thread. */
thread 79 kernel/generic/include/cpu.h struct thread *prev_thread;
thread 121 kernel/generic/include/cpu.h _Atomic(struct thread *) fpu_owner;
thread 45 kernel/generic/include/ipc/kbox.h struct thread *thread;
thread 41 kernel/generic/include/proc/program.h struct thread;
thread 51 kernel/generic/include/proc/program.h struct thread *main_thread; /**< Program main thread */
thread 64 kernel/generic/include/proc/task.h struct thread;
thread 52 kernel/generic/include/proc/thread.h #define THREAD CURRENT->thread
thread 244 kernel/generic/include/proc/thread.h static inline thread_t *thread_ref(thread_t *thread)
thread 246 kernel/generic/include/proc/thread.h refcount_up(&thread->refcount);
thread 247 kernel/generic/include/proc/thread.h return thread;
thread 250 kernel/generic/include/proc/thread.h static inline thread_t *thread_try_ref(thread_t *thread)
thread 252 kernel/generic/include/proc/thread.h if (refcount_try_up(&thread->refcount))
thread 253 kernel/generic/include/proc/thread.h return thread;
thread 49 kernel/generic/include/synch/mutex.h struct thread;
thread 54 kernel/generic/include/synch/mutex.h struct thread *owner;
thread 69 kernel/generic/include/synch/waitq.h struct thread;
thread 88 kernel/generic/include/udebug/udebug.h struct thread;
thread 96 kernel/generic/include/udebug/udebug.h void udebug_thread_b_event_attach(struct thread *, struct task *);
thread 1001 kernel/generic/src/console/cmd.c thread_t *thread;
thread 1002 kernel/generic/src/console/cmd.c if ((thread = thread_create((void (*)(void *)) cmd_call0,
thread 1005 kernel/generic/src/console/cmd.c thread_wire(thread, &cpus[i]);
thread 1006 kernel/generic/src/console/cmd.c thread_start(thread);
thread 1007 kernel/generic/src/console/cmd.c thread_join(thread);
thread 100 kernel/generic/src/debug/panic.c CURRENT->thread, CURRENT->task, CURRENT->cpu, CURRENT->as, CURRENT->magic);
thread 102 kernel/generic/src/debug/panic.c if (CURRENT->thread != NULL)
thread 103 kernel/generic/src/debug/panic.c printf("thread=\"%s\"\n", CURRENT->thread->name);
thread 222 kernel/generic/src/interrupt/interrupt.c istate_t *istate_get(thread_t *thread)
thread 228 kernel/generic/src/interrupt/interrupt.c return (istate_t *) &thread->kstack[MEM_STACK_SIZE - sizeof(istate_t)];
thread 65 kernel/generic/src/ipc/kbox.c bool have_kb_thread = (TASK->kb.thread != NULL);
thread 91 kernel/generic/src/ipc/kbox.c thread_join(TASK->kb.thread);
thread 93 kernel/generic/src/ipc/kbox.c TASK->kb.thread = NULL;
thread 138 kernel/generic/src/ipc/kbox.c thread_put(TASK->kb.thread);
thread 139 kernel/generic/src/ipc/kbox.c TASK->kb.thread = NULL;
thread 221 kernel/generic/src/ipc/kbox.c if (task->kb.thread == NULL) {
thread 231 kernel/generic/src/ipc/kbox.c task->kb.thread = kb_thread;
thread 104 kernel/generic/src/main/kinit.c thread_t *thread;
thread 118 kernel/generic/src/main/kinit.c thread = thread_create(kmp, NULL, TASK,
thread 120 kernel/generic/src/main/kinit.c if (!thread)
thread 123 kernel/generic/src/main/kinit.c thread_wire(thread, &cpus[0]);
thread 124 kernel/generic/src/main/kinit.c thread_start(thread);
thread 125 kernel/generic/src/main/kinit.c thread_join(thread);
thread 133 kernel/generic/src/main/kinit.c thread = thread_create(kcpulb, NULL, TASK,
thread 135 kernel/generic/src/main/kinit.c if (thread != NULL) {
thread 136 kernel/generic/src/main/kinit.c thread_wire(thread, &cpus[i]);
thread 137 kernel/generic/src/main/kinit.c thread_start(thread);
thread 138 kernel/generic/src/main/kinit.c thread_detach(thread);
thread 152 kernel/generic/src/main/kinit.c thread = thread_create(kload, NULL, TASK, THREAD_FLAG_NONE,
thread 154 kernel/generic/src/main/kinit.c if (thread != NULL) {
thread 155 kernel/generic/src/main/kinit.c thread_start(thread);
thread 156 kernel/generic/src/main/kinit.c thread_detach(thread);
thread 166 kernel/generic/src/main/kinit.c thread = thread_create(kconsole_thread, NULL, TASK,
thread 168 kernel/generic/src/main/kinit.c if (thread != NULL) {
thread 169 kernel/generic/src/main/kinit.c thread_start(thread);
thread 170 kernel/generic/src/main/kinit.c thread_detach(thread);
thread 59 kernel/generic/src/proc/current.c the->thread = NULL;
thread 141 kernel/generic/src/proc/scheduler.c thread_t *thread = list_get_instance(
thread 143 kernel/generic/src/proc/scheduler.c list_remove(&thread->rq_link);
thread 148 kernel/generic/src/proc/scheduler.c return thread;
thread 169 kernel/generic/src/proc/scheduler.c thread_t *thread = try_find_thread(rq_index);
thread 171 kernel/generic/src/proc/scheduler.c if (thread != NULL)
thread 172 kernel/generic/src/proc/scheduler.c return thread;
thread 367 kernel/generic/src/proc/scheduler.c static void add_to_rq(thread_t *thread, cpu_t *cpu, int i)
thread 373 kernel/generic/src/proc/scheduler.c list_append(&thread->rq_link, &rq->rq);
thread 383 kernel/generic/src/proc/scheduler.c static void thread_requeue_preempted(thread_t *thread)
thread 386 kernel/generic/src/proc/scheduler.c assert(atomic_get_unordered(&thread->state) == Running);
thread 387 kernel/generic/src/proc/scheduler.c assert(atomic_get_unordered(&thread->cpu) == CPU);
thread 389 kernel/generic/src/proc/scheduler.c int prio = atomic_get_unordered(&thread->priority);
thread 393 kernel/generic/src/proc/scheduler.c atomic_set_unordered(&thread->priority, prio);
thread 396 kernel/generic/src/proc/scheduler.c atomic_set_unordered(&thread->state, Ready);
thread 398 kernel/generic/src/proc/scheduler.c add_to_rq(thread, CPU, prio);
thread 401 kernel/generic/src/proc/scheduler.c void thread_requeue_sleeping(thread_t *thread)
thread 405 kernel/generic/src/proc/scheduler.c assert(atomic_get_unordered(&thread->state) == Sleeping || atomic_get_unordered(&thread->state) == Entering);
thread 407 kernel/generic/src/proc/scheduler.c atomic_set_unordered(&thread->priority, 0);
thread 408 kernel/generic/src/proc/scheduler.c atomic_set_unordered(&thread->state, Ready);
thread 411 kernel/generic/src/proc/scheduler.c cpu_t *cpu = atomic_get_unordered(&thread->cpu);
thread 415 kernel/generic/src/proc/scheduler.c atomic_set_unordered(&thread->cpu, CPU);
thread 418 kernel/generic/src/proc/scheduler.c add_to_rq(thread, cpu, 0);
thread 423 kernel/generic/src/proc/scheduler.c static void cleanup_after_thread(thread_t *thread)
thread 430 kernel/generic/src/proc/scheduler.c switch (atomic_get_unordered(&thread->state)) {
thread 432 kernel/generic/src/proc/scheduler.c thread_requeue_preempted(thread);
thread 436 kernel/generic/src/proc/scheduler.c waitq_close(&thread->join_wq);
thread 443 kernel/generic/src/proc/scheduler.c thread_put(thread);
thread 450 kernel/generic/src/proc/scheduler.c if (!atomic_compare_exchange_strong_explicit(&thread->sleep_state,
thread 456 kernel/generic/src/proc/scheduler.c thread_requeue_sleeping(thread);
thread 465 kernel/generic/src/proc/scheduler.c thread->tid, thread_states[atomic_get_unordered(&thread->state)]);
thread 634 kernel/generic/src/proc/scheduler.c list_foreach_rev(old_rq->rq, rq_link, thread_t, thread) {
thread 642 kernel/generic/src/proc/scheduler.c if (thread->stolen || thread->nomigrate || thread == fpu_owner) {
thread 646 kernel/generic/src/proc/scheduler.c thread->stolen = true;
thread 647 kernel/generic/src/proc/scheduler.c atomic_set_unordered(&thread->cpu, CPU);
thread 656 kernel/generic/src/proc/scheduler.c "nrdy=%ld, avg=%ld", CPU->id, thread->tid,
thread 663 kernel/generic/src/proc/scheduler.c list_remove(&thread->rq_link);
thread 668 kernel/generic/src/proc/scheduler.c list_append(&thread->rq_link, &new_rq->rq);
thread 675 kernel/generic/src/proc/scheduler.c return thread;
thread 790 kernel/generic/src/proc/scheduler.c thread) {
thread 791 kernel/generic/src/proc/scheduler.c printf("%" PRIu64 "(%s) ", thread->tid,
thread 792 kernel/generic/src/proc/scheduler.c thread_states[atomic_get_unordered(&thread->state)]);
thread 173 kernel/generic/src/proc/task.c task->kb.thread = NULL;
thread 518 kernel/generic/src/proc/task.c list_foreach(task->threads, th_link, thread_t, thread) {
thread 520 kernel/generic/src/proc/task.c if (!thread->uncounted) {
thread 521 kernel/generic/src/proc/task.c if (thread == THREAD) {
thread 526 kernel/generic/src/proc/task.c uret += atomic_time_read(&thread->ucycles);
thread 527 kernel/generic/src/proc/task.c kret += atomic_time_read(&thread->kcycles);
thread 543 kernel/generic/src/proc/task.c list_foreach(task->threads, th_link, thread_t, thread) {
thread 544 kernel/generic/src/proc/task.c thread_interrupt(thread);
thread 115 kernel/generic/src/proc/thread.c thread_t *thread = (thread_t *) obj;
thread 117 kernel/generic/src/proc/thread.c link_initialize(&thread->rq_link);
thread 118 kernel/generic/src/proc/thread.c link_initialize(&thread->wq_link);
thread 119 kernel/generic/src/proc/thread.c link_initialize(&thread->th_link);
thread 122 kernel/generic/src/proc/thread.c thr_constructor_arch(thread);
thread 153 kernel/generic/src/proc/thread.c thread->kstack = (uint8_t *) PA2KA(stack_phys);
thread 156 kernel/generic/src/proc/thread.c mutex_initialize(&thread->udebug.lock, MUTEX_PASSIVE);
thread 165 kernel/generic/src/proc/thread.c thread_t *thread = (thread_t *) obj;
thread 168 kernel/generic/src/proc/thread.c thr_destructor_arch(thread);
thread 170 kernel/generic/src/proc/thread.c frame_free(KA2PA(thread->kstack), STACK_FRAMES);
thread 196 kernel/generic/src/proc/thread.c void thread_wire(thread_t *thread, cpu_t *cpu)
thread 199 kernel/generic/src/proc/thread.c atomic_set_unordered(&thread->cpu, cpu);
thread 200 kernel/generic/src/proc/thread.c thread->nomigrate++;
thread 208 kernel/generic/src/proc/thread.c void thread_start(thread_t *thread)
thread 210 kernel/generic/src/proc/thread.c assert(atomic_get_unordered(&thread->state) == Entering);
thread 211 kernel/generic/src/proc/thread.c thread_requeue_sleeping(thread_ref(thread));
thread 232 kernel/generic/src/proc/thread.c thread_t *thread = (thread_t *) slab_alloc(thread_cache, FRAME_ATOMIC);
thread 233 kernel/generic/src/proc/thread.c if (!thread)
thread 236 kernel/generic/src/proc/thread.c refcount_init(&thread->refcount);
thread 238 kernel/generic/src/proc/thread.c if (thread_create_arch(thread, flags) != EOK) {
thread 239 kernel/generic/src/proc/thread.c slab_free(thread_cache, thread);
thread 244 kernel/generic/src/proc/thread.c memsetb(thread->kstack, STACK_SIZE, 0);
thread 247 kernel/generic/src/proc/thread.c thread->tid = ++last_tid;
thread 250 kernel/generic/src/proc/thread.c context_create(&thread->saved_context, thread_main_func,
thread 251 kernel/generic/src/proc/thread.c thread->kstack, STACK_SIZE);
thread 253 kernel/generic/src/proc/thread.c current_initialize((current_t *) thread->kstack);
thread 255 kernel/generic/src/proc/thread.c str_cpy(thread->name, THREAD_NAME_BUFLEN, name);
thread 257 kernel/generic/src/proc/thread.c thread->thread_code = func;
thread 258 kernel/generic/src/proc/thread.c thread->thread_arg = arg;
thread 259 kernel/generic/src/proc/thread.c thread->ucycles = ATOMIC_TIME_INITIALIZER();
thread 260 kernel/generic/src/proc/thread.c thread->kcycles = ATOMIC_TIME_INITIALIZER();
thread 261 kernel/generic/src/proc/thread.c thread->uncounted =
thread 263 kernel/generic/src/proc/thread.c atomic_init(&thread->priority, 0);
thread 264 kernel/generic/src/proc/thread.c atomic_init(&thread->cpu, NULL);
thread 265 kernel/generic/src/proc/thread.c thread->stolen = false;
thread 266 kernel/generic/src/proc/thread.c thread->uspace =
thread 269 kernel/generic/src/proc/thread.c thread->nomigrate = 0;
thread 270 kernel/generic/src/proc/thread.c atomic_init(&thread->state, Entering);
thread 272 kernel/generic/src/proc/thread.c atomic_init(&thread->sleep_queue, NULL);
thread 274 kernel/generic/src/proc/thread.c thread->in_copy_from_uspace = false;
thread 275 kernel/generic/src/proc/thread.c thread->in_copy_to_uspace = false;
thread 277 kernel/generic/src/proc/thread.c thread->interrupted = false;
thread 278 kernel/generic/src/proc/thread.c atomic_init(&thread->sleep_state, SLEEP_INITIAL);
thread 280 kernel/generic/src/proc/thread.c waitq_initialize(&thread->join_wq);
thread 282 kernel/generic/src/proc/thread.c thread->task = task;
thread 284 kernel/generic/src/proc/thread.c thread->fpu_context_exists = false;
thread 286 kernel/generic/src/proc/thread.c odlink_initialize(&thread->lthreads);
thread 290 kernel/generic/src/proc/thread.c atomic_init(&thread->btrace, false);
thread 291 kernel/generic/src/proc/thread.c udebug_thread_initialize(&thread->udebug);
thread 295 kernel/generic/src/proc/thread.c thread_attach(thread, task);
thread 297 kernel/generic/src/proc/thread.c return thread;
thread 309 kernel/generic/src/proc/thread.c thread_t *thread = (thread_t *) obj;
thread 311 kernel/generic/src/proc/thread.c assert_link_not_used(&thread->rq_link);
thread 312 kernel/generic/src/proc/thread.c assert_link_not_used(&thread->wq_link);
thread 314 kernel/generic/src/proc/thread.c assert(thread->task);
thread 320 kernel/generic/src/proc/thread.c odict_remove(&thread->lthreads);
thread 324 kernel/generic/src/proc/thread.c irq_spinlock_lock(&thread->task->lock, false);
thread 326 kernel/generic/src/proc/thread.c list_remove(&thread->th_link);
thread 333 kernel/generic/src/proc/thread.c if (!thread->uncounted) {
thread 334 kernel/generic/src/proc/thread.c thread->task->ucycles += atomic_time_read(&thread->ucycles);
thread 335 kernel/generic/src/proc/thread.c thread->task->kcycles += atomic_time_read(&thread->kcycles);
thread 338 kernel/generic/src/proc/thread.c irq_spinlock_unlock(&thread->task->lock, false);
thread 340 kernel/generic/src/proc/thread.c assert((atomic_get_unordered(&thread->state) == Exiting) || (atomic_get_unordered(&thread->state) == Lingering));
thread 344 kernel/generic/src/proc/thread.c cpu_t *cpu = atomic_get_unordered(&thread->cpu);
thread 353 kernel/generic/src/proc/thread.c if (atomic_get_unordered(&cpu->fpu_owner) == thread)
thread 365 kernel/generic/src/proc/thread.c task_release(thread->task);
thread 366 kernel/generic/src/proc/thread.c thread->task = NULL;
thread 368 kernel/generic/src/proc/thread.c slab_free(thread_cache, thread);
thread 371 kernel/generic/src/proc/thread.c void thread_put(thread_t *thread)
thread 373 kernel/generic/src/proc/thread.c if (refcount_down(&thread->refcount)) {
thread 374 kernel/generic/src/proc/thread.c thread_destroy(thread);
thread 387 kernel/generic/src/proc/thread.c void thread_attach(thread_t *thread, task_t *task)
thread 400 kernel/generic/src/proc/thread.c if (thread->uspace)
thread 403 kernel/generic/src/proc/thread.c list_append(&thread->th_link, &task->threads);
thread 411 kernel/generic/src/proc/thread.c odict_insert(&thread->lthreads, &threads, NULL);
thread 465 kernel/generic/src/proc/thread.c void thread_interrupt(thread_t *thread)
thread 467 kernel/generic/src/proc/thread.c assert(thread != NULL);
thread 468 kernel/generic/src/proc/thread.c thread->interrupted = true;
thread 469 kernel/generic/src/proc/thread.c thread_wakeup(thread);
thread 560 kernel/generic/src/proc/thread.c void thread_wakeup(thread_t *thread)
thread 562 kernel/generic/src/proc/thread.c assert(thread != NULL);
thread 564 kernel/generic/src/proc/thread.c int state = atomic_exchange_explicit(&thread->sleep_state, SLEEP_WOKE,
thread 573 kernel/generic/src/proc/thread.c thread_requeue_sleeping(thread);
thread 623 kernel/generic/src/proc/thread.c errno_t thread_join(thread_t *thread)
thread 625 kernel/generic/src/proc/thread.c return thread_join_timeout(thread, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE);
thread 638 kernel/generic/src/proc/thread.c errno_t thread_join_timeout(thread_t *thread, uint32_t usec, unsigned int flags)
thread 640 kernel/generic/src/proc/thread.c assert(thread != NULL);
thread 642 kernel/generic/src/proc/thread.c if (thread == THREAD)
thread 645 kernel/generic/src/proc/thread.c errno_t rc = _waitq_sleep_timeout(&thread->join_wq, usec, flags);
thread 648 kernel/generic/src/proc/thread.c thread_put(thread);
thread 653 kernel/generic/src/proc/thread.c void thread_detach(thread_t *thread)
thread 655 kernel/generic/src/proc/thread.c thread_put(thread);
thread 681 kernel/generic/src/proc/thread.c static void thread_print(thread_t *thread, bool additional)
thread 685 kernel/generic/src/proc/thread.c order_suffix(atomic_time_read(&thread->ucycles), &ucycles, &usuffix);
thread 686 kernel/generic/src/proc/thread.c order_suffix(atomic_time_read(&thread->kcycles), &kcycles, &ksuffix);
thread 688 kernel/generic/src/proc/thread.c state_t state = atomic_get_unordered(&thread->state);
thread 691 kernel/generic/src/proc/thread.c if (str_cmp(thread->name, "uinit") == 0)
thread 692 kernel/generic/src/proc/thread.c name = thread->task->name;
thread 694 kernel/generic/src/proc/thread.c name = thread->name;
thread 698 kernel/generic/src/proc/thread.c thread->tid, thread->thread_code, thread->kstack,
thread 702 kernel/generic/src/proc/thread.c thread->tid, name, thread, thread_states[state],
thread 703 kernel/generic/src/proc/thread.c thread->task, thread->task->container);
thread 706 kernel/generic/src/proc/thread.c cpu_t *cpu = atomic_get_unordered(&thread->cpu);
thread 713 kernel/generic/src/proc/thread.c printf(" %p", thread->sleep_queue);
thread 727 kernel/generic/src/proc/thread.c thread_t *thread;
thread 748 kernel/generic/src/proc/thread.c thread = thread_first();
thread 749 kernel/generic/src/proc/thread.c while (thread != NULL) {
thread 750 kernel/generic/src/proc/thread.c thread_print(thread, additional);
thread 751 kernel/generic/src/proc/thread.c thread = thread_next(thread);
thread 757 kernel/generic/src/proc/thread.c static bool thread_exists(thread_t *thread)
thread 759 kernel/generic/src/proc/thread.c odlink_t *odlink = odict_find_eq(&threads, thread, NULL);
thread 765 kernel/generic/src/proc/thread.c thread_t *thread_try_get(thread_t *thread)
thread 769 kernel/generic/src/proc/thread.c if (thread_exists(thread)) {
thread 771 kernel/generic/src/proc/thread.c thread = thread_try_ref(thread);
thread 773 kernel/generic/src/proc/thread.c thread = NULL;
thread 778 kernel/generic/src/proc/thread.c return thread;
thread 819 kernel/generic/src/proc/thread.c thread_t *thread;
thread 824 kernel/generic/src/proc/thread.c thread = thread_first();
thread 825 kernel/generic/src/proc/thread.c while (thread != NULL) {
thread 826 kernel/generic/src/proc/thread.c if (thread->tid == thread_id)
thread 827 kernel/generic/src/proc/thread.c return thread;
thread 829 kernel/generic/src/proc/thread.c thread = thread_next(thread);
thread 889 kernel/generic/src/proc/thread.c thread_t *thread = thread_try_ref(thread_find_by_id(thread_id));
thread 892 kernel/generic/src/proc/thread.c if (thread == NULL) {
thread 910 kernel/generic/src/proc/thread.c atomic_set_unordered(&thread->btrace, true);
thread 912 kernel/generic/src/proc/thread.c thread_wakeup(thread);
thread 913 kernel/generic/src/proc/thread.c thread_put(thread);
thread 925 kernel/generic/src/proc/thread.c thread_t *thread = odict_get_instance(odlink, thread_t, lthreads);
thread 926 kernel/generic/src/proc/thread.c return (void *) thread;
thread 978 kernel/generic/src/proc/thread.c thread_t *thread = thread_create(uinit, kernel_uarg, TASK,
thread 980 kernel/generic/src/proc/thread.c if (!thread) {
thread 993 kernel/generic/src/proc/thread.c udebug_thread_b_event_attach(thread, TASK);
thread 995 kernel/generic/src/proc/thread.c thread_attach(thread, TASK);
thread 997 kernel/generic/src/proc/thread.c thread_start(thread);
thread 998 kernel/generic/src/proc/thread.c thread_put(thread);
thread 278 kernel/generic/src/synch/waitq.c thread_t *thread = list_get_instance(list_first(&wq->sleepers), thread_t, wq_link);
thread 279 kernel/generic/src/synch/waitq.c list_remove(&thread->wq_link);
thread 280 kernel/generic/src/synch/waitq.c thread_wakeup(thread);
thread 298 kernel/generic/src/sysinfo/stats.c static void produce_stats_thread(thread_t *thread, stats_thread_t *stats_thread)
thread 302 kernel/generic/src/sysinfo/stats.c stats_thread->thread_id = thread->tid;
thread 303 kernel/generic/src/sysinfo/stats.c stats_thread->task_id = thread->task->taskid;
thread 304 kernel/generic/src/sysinfo/stats.c stats_thread->state = atomic_get_unordered(&thread->state);
thread 305 kernel/generic/src/sysinfo/stats.c stats_thread->priority = atomic_get_unordered(&thread->priority);
thread 306 kernel/generic/src/sysinfo/stats.c stats_thread->ucycles = atomic_time_read(&thread->ucycles);
thread 307 kernel/generic/src/sysinfo/stats.c stats_thread->kcycles = atomic_time_read(&thread->kcycles);
thread 309 kernel/generic/src/sysinfo/stats.c cpu_t *cpu = atomic_get_unordered(&thread->cpu);
thread 362 kernel/generic/src/sysinfo/stats.c thread_t *thread = thread_first();
thread 363 kernel/generic/src/sysinfo/stats.c while (thread != NULL) {
thread 365 kernel/generic/src/sysinfo/stats.c produce_stats_thread(thread, &stats_threads[i]);
thread 368 kernel/generic/src/sysinfo/stats.c thread = thread_next(thread);
thread 583 kernel/generic/src/sysinfo/stats.c thread_t *thread = thread_find_by_id(thread_id);
thread 584 kernel/generic/src/sysinfo/stats.c if (thread == NULL) {
thread 610 kernel/generic/src/sysinfo/stats.c produce_stats_thread(thread, stats_thread);
thread 286 kernel/generic/src/udebug/udebug.c void udebug_thread_b_event_attach(struct thread *thread, struct task *task)
thread 291 kernel/generic/src/udebug/udebug.c thread_attach(thread, task);
thread 313 kernel/generic/src/udebug/udebug.c ipc_set_arg2(&call->data, (sysarg_t) thread);
thread 405 kernel/generic/src/udebug/udebug.c list_foreach(task->threads, th_link, thread_t, thread) {
thread 406 kernel/generic/src/udebug/udebug.c mutex_lock(&thread->udebug.lock);
thread 409 kernel/generic/src/udebug/udebug.c if (thread->uspace) {
thread 411 kernel/generic/src/udebug/udebug.c thread->udebug.active = false;
thread 412 kernel/generic/src/udebug/udebug.c thread->udebug.cur_event = 0; /* None */
thread 415 kernel/generic/src/udebug/udebug.c if (thread->udebug.go == true) {
thread 420 kernel/generic/src/udebug/udebug.c thread->udebug.go = false;
thread 425 kernel/generic/src/udebug/udebug.c ipc_set_retval(&thread->udebug.go_call->data, 0);
thread 426 kernel/generic/src/udebug/udebug.c ipc_set_arg1(&thread->udebug.go_call->data,
thread 429 kernel/generic/src/udebug/udebug.c ipc_answer(&task->answerbox, thread->udebug.go_call);
thread 430 kernel/generic/src/udebug/udebug.c thread->udebug.go_call = NULL;
thread 443 kernel/generic/src/udebug/udebug.c waitq_close(&thread->udebug.go_wq);
thread 446 kernel/generic/src/udebug/udebug.c mutex_unlock(&thread->udebug.lock);
thread 447 kernel/generic/src/udebug/udebug.c condvar_broadcast(&thread->udebug.active_cv);
thread 449 kernel/generic/src/udebug/udebug.c mutex_unlock(&thread->udebug.lock);
thread 81 kernel/generic/src/udebug/udebug_ops.c static errno_t _thread_op_begin(thread_t *thread, bool being_go)
thread 85 kernel/generic/src/udebug/udebug_ops.c thread = thread_try_get(thread);
thread 87 kernel/generic/src/udebug/udebug_ops.c if (!thread) {
thread 93 kernel/generic/src/udebug/udebug_ops.c if (!thread->uspace) {
thread 103 kernel/generic/src/udebug/udebug_ops.c mutex_lock(&thread->udebug.lock);
thread 106 kernel/generic/src/udebug/udebug_ops.c if (thread->udebug.active != true) {
thread 108 kernel/generic/src/udebug/udebug_ops.c mutex_unlock(&thread->udebug.lock);
thread 114 kernel/generic/src/udebug/udebug_ops.c if (thread->task != TASK) {
thread 116 kernel/generic/src/udebug/udebug_ops.c mutex_unlock(&thread->udebug.lock);
thread 124 kernel/generic/src/udebug/udebug_ops.c if (thread->udebug.go != being_go) {
thread 126 kernel/generic/src/udebug/udebug_ops.c mutex_unlock(&thread->udebug.lock);
thread 136 kernel/generic/src/udebug/udebug_ops.c static void _thread_op_end(thread_t *thread)
thread 138 kernel/generic/src/udebug/udebug_ops.c mutex_unlock(&thread->udebug.lock);
thread 141 kernel/generic/src/udebug/udebug_ops.c thread_put(thread);
thread 187 kernel/generic/src/udebug/udebug_ops.c list_foreach(TASK->threads, th_link, thread_t, thread) {
thread 188 kernel/generic/src/udebug/udebug_ops.c mutex_lock(&thread->udebug.lock);
thread 189 kernel/generic/src/udebug/udebug_ops.c if (thread->uspace) {
thread 190 kernel/generic/src/udebug/udebug_ops.c thread->udebug.active = true;
thread 191 kernel/generic/src/udebug/udebug_ops.c mutex_unlock(&thread->udebug.lock);
thread 192 kernel/generic/src/udebug/udebug_ops.c condvar_broadcast(&thread->udebug.active_cv);
thread 194 kernel/generic/src/udebug/udebug_ops.c mutex_unlock(&thread->udebug.lock);
thread 255 kernel/generic/src/udebug/udebug_ops.c errno_t udebug_go(thread_t *thread, call_t *call)
thread 258 kernel/generic/src/udebug/udebug_ops.c errno_t rc = _thread_op_begin(thread, false);
thread 262 kernel/generic/src/udebug/udebug_ops.c thread->udebug.go_call = call;
thread 263 kernel/generic/src/udebug/udebug_ops.c thread->udebug.go = true;
thread 264 kernel/generic/src/udebug/udebug_ops.c thread->udebug.cur_event = 0; /* none */
thread 270 kernel/generic/src/udebug/udebug_ops.c waitq_wake_all(&thread->udebug.go_wq);
thread 272 kernel/generic/src/udebug/udebug_ops.c _thread_op_end(thread);
thread 286 kernel/generic/src/udebug/udebug_ops.c errno_t udebug_stop(thread_t *thread, call_t *call)
thread 295 kernel/generic/src/udebug/udebug_ops.c errno_t rc = _thread_op_begin(thread, true);
thread 300 kernel/generic/src/udebug/udebug_ops.c thread->udebug.go = false;
thread 302 kernel/generic/src/udebug/udebug_ops.c if (thread->udebug.stoppable != true) {
thread 304 kernel/generic/src/udebug/udebug_ops.c _thread_op_end(thread);
thread 314 kernel/generic/src/udebug/udebug_ops.c call = thread->udebug.go_call;
thread 315 kernel/generic/src/udebug/udebug_ops.c thread->udebug.go_call = NULL;
thread 322 kernel/generic/src/udebug/udebug_ops.c _thread_op_end(thread);
thread 381 kernel/generic/src/udebug/udebug_ops.c list_foreach(TASK->threads, th_link, thread_t, thread) {
thread 382 kernel/generic/src/udebug/udebug_ops.c bool uspace = thread->uspace;
thread 390 kernel/generic/src/udebug/udebug_ops.c id_buffer[copied_ids++] = (sysarg_t) thread;
thread 448 kernel/generic/src/udebug/udebug_ops.c errno_t udebug_args_read(thread_t *thread, void **buffer)
thread 451 kernel/generic/src/udebug/udebug_ops.c errno_t rc = _thread_op_begin(thread, false);
thread 456 kernel/generic/src/udebug/udebug_ops.c if ((thread->udebug.cur_event != UDEBUG_EVENT_SYSCALL_B) &&
thread 457 kernel/generic/src/udebug/udebug_ops.c (thread->udebug.cur_event != UDEBUG_EVENT_SYSCALL_E)) {
thread 458 kernel/generic/src/udebug/udebug_ops.c _thread_op_end(thread);
thread 465 kernel/generic/src/udebug/udebug_ops.c _thread_op_end(thread);
thread 470 kernel/generic/src/udebug/udebug_ops.c memcpy(arg_buffer, thread->udebug.syscall_args, 6 * sizeof(sysarg_t));
thread 472 kernel/generic/src/udebug/udebug_ops.c _thread_op_end(thread);
thread 495 kernel/generic/src/udebug/udebug_ops.c errno_t udebug_regs_read(thread_t *thread, void **buffer)
thread 498 kernel/generic/src/udebug/udebug_ops.c errno_t rc = _thread_op_begin(thread, false);
thread 502 kernel/generic/src/udebug/udebug_ops.c istate_t *state = thread->udebug.uspace_state;
thread 504 kernel/generic/src/udebug/udebug_ops.c _thread_op_end(thread);
thread 511 kernel/generic/src/udebug/udebug_ops.c _thread_op_end(thread);
thread 518 kernel/generic/src/udebug/udebug_ops.c _thread_op_end(thread);
thread 95 uspace/lib/cpp/include/__bits/thread/mutex.hpp thread::id owner_;
thread 196 uspace/lib/cpp/include/__bits/thread/mutex.hpp thread::id owner_;
thread 279 uspace/lib/cpp/include/__bits/thread/shared_state.hpp thread_ = thread{
thread 308 uspace/lib/cpp/include/__bits/thread/shared_state.hpp const_cast<thread&>(thread_).join();
thread 331 uspace/lib/cpp/include/__bits/thread/shared_state.hpp thread thread_;
thread 131 uspace/lib/cpp/include/__bits/thread/thread.hpp thread() noexcept;
thread 133 uspace/lib/cpp/include/__bits/thread/thread.hpp ~thread();
thread 147 uspace/lib/cpp/include/__bits/thread/thread.hpp id_ = aux::threading::thread::create(
thread 152 uspace/lib/cpp/include/__bits/thread/thread.hpp aux::threading::thread::start(id_);
thread 156 uspace/lib/cpp/include/__bits/thread/thread.hpp thread(const thread&) = delete;
thread 157 uspace/lib/cpp/include/__bits/thread/thread.hpp thread& operator=(const thread&) = delete;
thread 159 uspace/lib/cpp/include/__bits/thread/thread.hpp thread(thread&& other) noexcept;
thread 160 uspace/lib/cpp/include/__bits/thread/thread.hpp thread& operator=(thread&& other) noexcept;
thread 166 uspace/lib/cpp/include/__bits/thread/thread.hpp void swap(thread& other) noexcept;
thread 206 uspace/lib/cpp/include/__bits/thread/thread.hpp void swap(thread& x, thread& y) noexcept;
thread 214 uspace/lib/cpp/include/__bits/thread/thread.hpp thread::id get_id() noexcept;
thread 242 uspace/lib/cpp/include/__bits/thread/thread.hpp class thread::id
thread 256 uspace/lib/cpp/include/__bits/thread/thread.hpp friend class thread;
thread 258 uspace/lib/cpp/include/__bits/thread/thread.hpp friend bool operator==(thread::id, thread::id) noexcept;
thread 259 uspace/lib/cpp/include/__bits/thread/thread.hpp friend bool operator!=(thread::id, thread::id) noexcept;
thread 260 uspace/lib/cpp/include/__bits/thread/thread.hpp friend bool operator<(thread::id, thread::id) noexcept;
thread 261 uspace/lib/cpp/include/__bits/thread/thread.hpp friend bool operator<=(thread::id, thread::id) noexcept;
thread 262 uspace/lib/cpp/include/__bits/thread/thread.hpp friend bool operator>(thread::id, thread::id) noexcept;
thread 263 uspace/lib/cpp/include/__bits/thread/thread.hpp friend bool operator>=(thread::id, thread::id) noexcept;
thread 267 uspace/lib/cpp/include/__bits/thread/thread.hpp basic_ostream<Char, Traits>&, thread::id);
thread 274 uspace/lib/cpp/include/__bits/thread/thread.hpp bool operator==(thread::id lhs, thread::id rhs) noexcept;
thread 275 uspace/lib/cpp/include/__bits/thread/thread.hpp bool operator!=(thread::id lhs, thread::id rhs) noexcept;
thread 276 uspace/lib/cpp/include/__bits/thread/thread.hpp bool operator<(thread::id lhs, thread::id rhs) noexcept;
thread 277 uspace/lib/cpp/include/__bits/thread/thread.hpp bool operator<=(thread::id lhs, thread::id rhs) noexcept;
thread 278 uspace/lib/cpp/include/__bits/thread/thread.hpp bool operator>(thread::id lhs, thread::id rhs) noexcept;
thread 279 uspace/lib/cpp/include/__bits/thread/thread.hpp bool operator>=(thread::id lhs, thread::id rhs) noexcept;
thread 282 uspace/lib/cpp/include/__bits/thread/thread.hpp basic_ostream<Char, Traits>& operator<<(basic_ostream<Char, Traits>& out, thread::id id)
thread 290 uspace/lib/cpp/include/__bits/thread/thread.hpp struct hash<thread::id>;
thread 139 uspace/lib/cpp/src/__bits/test/future.cpp std::thread t2{
thread 149 uspace/lib/cpp/src/__bits/test/future.cpp std::thread t3{
thread 161 uspace/lib/cpp/src/__bits/test/future.cpp std::thread t4{
thread 211 uspace/lib/cpp/src/__bits/test/future.cpp std::thread t7{
thread 221 uspace/lib/cpp/src/__bits/test/future.cpp std::thread t8{
thread 334 uspace/lib/cpp/src/__bits/test/future.cpp std::thread t1{
thread 339 uspace/lib/cpp/src/__bits/test/future.cpp std::thread t2{
thread 37 uspace/lib/cpp/src/thread.cpp thread::thread() noexcept
thread 41 uspace/lib/cpp/src/thread.cpp thread::~thread()
thread 56 uspace/lib/cpp/src/thread.cpp thread::thread(thread&& other) noexcept
thread 63 uspace/lib/cpp/src/thread.cpp thread& thread::operator=(thread&& other) noexcept
thread 77 uspace/lib/cpp/src/thread.cpp void thread::swap(thread& other) noexcept
thread 83 uspace/lib/cpp/src/thread.cpp bool thread::joinable() const noexcept
thread 88 uspace/lib/cpp/src/thread.cpp void thread::join()
thread 94 uspace/lib/cpp/src/thread.cpp void thread::detach()
thread 105 uspace/lib/cpp/src/thread.cpp thread::id thread::get_id() const noexcept
thread 110 uspace/lib/cpp/src/thread.cpp thread::native_handle_type thread::native_handle()
thread 120 uspace/lib/cpp/src/thread.cpp unsigned thread::hardware_concurrency() noexcept
thread 127 uspace/lib/cpp/src/thread.cpp void swap(thread& x, thread& y) noexcept
thread 134 uspace/lib/cpp/src/thread.cpp thread::id get_id() noexcept
thread 136 uspace/lib/cpp/src/thread.cpp return thread::id{aux::threading::thread::this_thread()};
thread 141 uspace/lib/cpp/src/thread.cpp aux::threading::thread::yield();
thread 145 uspace/lib/cpp/src/thread.cpp bool operator==(thread::id lhs, thread::id rhs) noexcept
thread 150 uspace/lib/cpp/src/thread.cpp bool operator!=(thread::id lhs, thread::id rhs) noexcept
thread 155 uspace/lib/cpp/src/thread.cpp bool operator<(thread::id lhs, thread::id rhs) noexcept
thread 160 uspace/lib/cpp/src/thread.cpp bool operator<=(thread::id lhs, thread::id rhs) noexcept
thread 165 uspace/lib/cpp/src/thread.cpp bool operator>(thread::id lhs, thread::id rhs) noexcept
thread 170 uspace/lib/cpp/src/thread.cpp bool operator>=(thread::id lhs, thread::id rhs) noexcept
thread 58 uspace/lib/posix/src/pthread/threads.c int pthread_join(pthread_t thread, void **ret_val)
thread 64 uspace/lib/posix/src/pthread/threads.c int pthread_detach(pthread_t thread)
thread 67 uspace/srv/taskmon/taskmon.c uintptr_t thread;
thread 70 uspace/srv/taskmon/taskmon.c thread = ipc_get_arg3(call);
thread 78 uspace/srv/taskmon/taskmon.c (void *) thread);
HelenOS homepage, sources at GitHub