Searched refs:thread_t (Results 1 - 25 of 55) sorted by relevance

123

/fuchsia/zircon/kernel/include/kernel/
H A Dthread.h207 } thread_t; typedef in typeref:struct:thread
229 void thread_secondary_cpu_init_early(thread_t* t);
231 void thread_construct_first(thread_t* t, const char* name);
232 thread_t* thread_create_idle_thread(uint cpu_num);
234 void thread_set_priority(thread_t* t, int priority);
235 void thread_set_user_callback(thread_t* t, thread_user_callback_t cb);
236 thread_t* thread_create(const char* name, thread_start_routine entry, void* arg, int priority);
237 thread_t* thread_create_etc(thread_t* t, const char* name, thread_start_routine entry, void* arg,
239 void thread_resume(thread_t*);
[all...]
H A Dsched.h20 void sched_init_thread(thread_t* t, int priority);
26 void sched_unblock_idle(thread_t* t) TA_REQ(thread_lock);
27 void sched_migrate(thread_t* t) TA_REQ(thread_lock);
31 void sched_inherit_priority(thread_t* t, int pri, bool* local_resched) TA_REQ(thread_lock);
35 void sched_change_priority(thread_t* t, int pri) TA_REQ(thread_lock);
39 bool sched_unblock(thread_t* t) __WARN_UNUSED_RESULT TA_REQ(thread_lock);
H A Dinterrupt.h20 thread_t* current_thread = get_current_thread();
34 thread_t* current_thread = get_current_thread();
H A Dpercpu.h43 thread_t idle_thread;
54 thread_t* dpc_thread;
H A Dmutex.h24 // The val field holds either 0 or a pointer to the thread_t holding the mutex.
41 static inline thread_t* mutex_holder(const mutex_t* m) {
43 return (thread_t*)(mutex_val(m) & ~MUTEX_FLAG_QUEUED);
/fuchsia/zircon/kernel/lib/hypervisor/include/hypervisor/
H A Dcpu.h25 thread_t* pin_thread(uint16_t vpid);
28 bool check_pinned_cpu_invariant(uint16_t vpid, const thread_t* thread);
/fuchsia/zircon/kernel/kernel/
H A Dwait.cpp39 // | thread_t | | thread_t | | thread_t |
46 // | thread_t | | thread_t |
53 // | thread_t |
68 thread_t* last = NULL;
69 thread_t* temp;
70 list_for_every_entry (&wait->heads, temp, thread_t, wait_queue_heads_node) {
82 thread_t* temp
[all...]
H A Dthread.cpp59 // counts the number of thread_t succesfully created.
61 // counts the number of thread_t joined. Never decreases.
75 static void thread_exit_locked(thread_t* current_thread, int retcode) __NO_RETURN;
78 static void init_thread_lock_state(thread_t* t) {
85 static void init_thread_struct(thread_t* t, const char* name) {
86 memset(t, 0, sizeof(thread_t));
101 thread_t* ct = get_current_thread();
111 static void invoke_user_callback(thread_t* t, enum thread_user_state_change new_state)
125 * @param t If not NULL, use the supplied thread_t
148 thread_t* thread_create_et
[all...]
H A Dsched.cpp56 static bool local_migrate_if_needed(thread_t* curr_thread);
59 static void compute_effec_priority(thread_t* t) {
71 static void boost_thread(thread_t* t) {
90 static void deboost_thread(thread_t* t, bool quantum_expiration) {
156 static cpu_mask_t find_cpu_mask(thread_t* t) TA_REQ(thread_lock) {
216 static void insert_in_run_queue_head(cpu_num_t cpu, thread_t* t) TA_REQ(thread_lock) {
226 static void insert_in_run_queue_tail(cpu_num_t cpu, thread_t* t) TA_REQ(thread_lock) {
237 static void remove_from_run_queue(thread_t* t, int prio_queue) TA_REQ(thread_lock) {
256 static thread_t* sched_get_top_thread(cpu_num_t cpu) TA_REQ(thread_lock) {
264 thread_t* newthrea
[all...]
H A Dmutex.cpp51 thread_t* holder = mutex_holder(m);
70 thread_t* ct = get_current_thread();
129 thread_t* ct = get_current_thread();
165 thread_t* holder = mutex_holder(m);
180 thread_t* t = wait_queue_dequeue_one(&m->wait, ZX_OK);
H A Ddebug.cpp68 thread_t* t = NULL;
70 t = (thread_t*)argv[2].u;
82 thread_t* t = NULL;
84 t = (thread_t*)argv[2].u;
/fuchsia/zircon/kernel/arch/arm64/
H A Dthread.cpp43 void arch_thread_initialize(thread_t* t, vaddr_t entry_point) {
73 __NO_SAFESTACK void arch_thread_construct_first(thread_t* t) {
77 thread_t* fake = get_current_thread();
94 __NO_SAFESTACK void arch_context_switch(thread_t* oldthread,
95 thread_t* newthread) {
108 void arch_dump_thread(thread_t* t) {
/fuchsia/zircon/kernel/tests/
H A Dpreempt_disable_tests.cpp25 thread_t* thread = get_current_thread();
78 thread_t* thread = get_current_thread();
120 thread_t* thread = get_current_thread();
148 thread_t* thread = get_current_thread();
181 thread_t* thread = get_current_thread();
209 thread_t* thread = get_current_thread();
234 thread_t* thread = get_current_thread();
263 thread_t* thread = get_current_thread();
H A Dfibo.cpp21 thread_t* t[2];
64 thread_t* t = thread_create("fibo", &fibo_thread, (void*)(uintptr_t)argv[1].u, DEFAULT_PRIORITY);
H A Dthread_tests.cpp92 thread_t* threads[5];
161 thread_t* test_thread[inherit_test_thread_count];
221 thread_t* threads[5];
369 thread_t* threads[8];
429 thread_t* t = thread_create("preempt tester", &preempt_tester, NULL, LOW_PRIORITY);
455 thread_t* t;
501 thread_t* t;
559 thread_t* holder_thread = thread_create("hold_and_release", &hold_and_release, &pair,
621 thread_t* t;
694 thread_t* thread
[all...]
/fuchsia/zircon/kernel/lib/hypervisor/
H A Dcpu.cpp47 thread_t* pin_thread(uint16_t vpid) {
48 thread_t* thread = get_current_thread();
53 bool check_pinned_cpu_invariant(uint16_t vpid, const thread_t* thread) {
/fuchsia/zircon/kernel/arch/x86/
H A Dthread.cpp24 void arch_thread_initialize(thread_t* t, vaddr_t entry_point) {
69 void arch_thread_construct_first(thread_t* t) {
72 void arch_dump_thread(thread_t* t) {
88 __NO_SAFESTACK __attribute__((target("fsgsbase"))) void arch_context_switch(thread_t* oldthread, thread_t* newthread) {
H A Dsmp.cpp37 static void free_stack_and_thread(thread_t* t) {
83 thread_t* thread = static_cast<thread_t*>(calloc(1, sizeof(thread_t)));
H A Duser_copy.cpp71 thread_t* thr = get_current_thread();
85 thread_t* thr = get_current_thread();
/fuchsia/zircon/kernel/object/
H A Dsemaphore.cpp29 thread_t *current_thread = get_current_thread();
/fuchsia/zircon/kernel/arch/x86/include/arch/x86/
H A Dregisters.h188 typedef struct thread thread_t; typedef in typeref:struct:thread
190 thread_t *old_thread, thread_t *new_thread);
/fuchsia/zircon/kernel/lib/oom/
H A Doom.cpp33 static thread_t* oom_thread TA_GUARDED(oom_mutex);
122 thread_t* t = thread_create("oom", oom_loop, nullptr, HIGH_PRIORITY);
176 thread_t* t = oom_thread;
/fuchsia/zircon/kernel/arch/x86/include/arch/
H A Dhypervisor.h100 const thread_t* thread_;
109 Vcpu(Guest* guest, uint16_t vpid, const thread_t* thread);
/fuchsia/zircon/kernel/top/
H A Dmain.cpp90 thread_t* t = thread_create("bootstrap2", &bootstrap2, NULL, DEFAULT_PRIORITY);
144 thread_t* t = thread_create_idle_thread(i + 1);
/fuchsia/zircon/kernel/arch/arm64/include/arch/
H A Dhypervisor.h117 const thread_t* thread_;
123 Vcpu(Guest* guest, uint8_t vpid, const thread_t* thread);

Completed in 175 milliseconds

123