Lines Matching defs:thread

33 	THREAD_STATE_FREE_ON_RESCHED = 7, // free the thread structure upon reschedule
34 // THREAD_STATE_BIRTH // thread is being created
84 thread_id thread;
106 thread_id thread; // main thread ID == team ID
152 struct user_thread* thread;
442 int64 serial_number; // immutable after adding thread to hash
443 Thread *hash_next; // protected by thread hash lock
452 int32 pinned_to_cpu; // only accessed by this thread or in the
453 // scheduler, when thread is not running
457 // only modified by the thread itself
461 // this thread
466 ucontext_t* user_signal_context; // only accessed by this thread
467 addr_t signal_stack_base; // only accessed by this thread
468 size_t signal_stack_size; // only accessed by this thread
469 bool signal_stack_enabled; // only accessed by this thread
472 // this thread
477 // modified by the thread itself and
497 // by this thread when reading
510 BKernel::Team *team; // protected by team lock, thread lock, scheduler
515 sem_id sem; // immutable after thread creation
516 status_t status; // accessed only by this thread
525 area_id kernel_stack_area; // immutable after thread creation
526 addr_t kernel_stack_base; // immutable after thread creation
527 addr_t kernel_stack_top; // immutable after thread creation
528 area_id user_stack_area; // protected by thread lock
529 addr_t user_stack_base; // protected by thread lock
530 size_t user_stack_size; // protected by thread lock
537 // user_time, kernel_time, and last_time are only written by the thread
538 // itself, so they can be read by the thread without lock. Holding the
539 // scheduler lock and checking that the thread does not run also guarantees
551 rw_lock* held_read_locks[64] = {}; // only modified by this thread
779 /*! Returns the thread's current total CPU time (kernel + user + offset).
783 \param ignoreCurrentRun If \c true and the thread is currently running,
785 be used in "thread unscheduled" scheduler callbacks, since although the
786 thread is still running at that time, its time has already been stopped.
787 \return The thread's current total CPU time.
817 // bits for the thread::flags field
821 // forces the thread into the debugger as soon as possible (set by
824 // indicates that the thread is in single-step mode (in userland)
832 // breakpoints are currently installed for the thread (i.e. the hardware is
846 // the thread is currently in a syscall; set/reset only for certain
850 // core dump in progress; the thread shall not exit the kernel to userland,
854 // the thread runs a compatibility mode (for instance IA32 on x86_64).
857 // the thread has an old sigmask to be restored