Searched refs:cthread (Results 1 – 9 of 9) sorted by relevance
| /xnu-11215/osfmk/kern/ |
| H A D | lock_ticket.c | 585 if (cthread->ctid == tlock->lck_ticket_owner) { in lck_ticket_contended() 594 tlock_mark_owned(tlock, cthread); in lck_ticket_contended() 691 tlock_mark_owned(tlock, cthread); in lck_ticket_lock_internal() 702 thread_t cthread = current_thread(); in lck_ticket_lock() local 704 lock_disable_preemption_for_thread(cthread); in lck_ticket_lock() 705 lck_ticket_lock_internal(tlock, cthread, grp); in lck_ticket_lock() 711 thread_t cthread = current_thread(); in lck_ticket_lock_nopreempt() local 713 lck_ticket_lock_internal(tlock, cthread, grp); in lck_ticket_lock_nopreempt() 761 thread_t cthread = current_thread(); in lck_ticket_lock_try_internal() local 766 lock_disable_preemption_for_thread(cthread); in lck_ticket_lock_try_internal() [all …]
|
| H A D | task_ref.c | 156 thread_t cthread; variable 158 cthread = current_thread(); 159 assert3p(cthread, !=, NULL); 161 kstackb = thread_get_kernel_stack(cthread);
|
| H A D | work_interval.c | 414 work_interval_should_propagate(thread_t cthread, thread_t thread) in work_interval_should_propagate() argument 417 if ((cthread->th_work_interval == NULL) || (thread->th_work_interval != NULL)) { in work_interval_should_propagate() 422 if (work_interval_auto_join_enabled(cthread->th_work_interval) == false) { in work_interval_should_propagate() 427 if ((cthread->sched_mode != TH_MODE_REALTIME) || (thread->sched_mode != TH_MODE_REALTIME)) { in work_interval_should_propagate() 434 if (thread_group_get_home_group(cthread) != thread_home_tg) { in work_interval_should_propagate() 444 if ((!cthread->active) || (!thread->active)) { in work_interval_should_propagate()
|
| H A D | timer_call.c | 1858 timer_compute_leeway(thread_t cthread, int32_t urgency, int32_t *tshift, uint64_t *tmax_abstime, bo… in timer_compute_leeway() argument 1860 int16_t tpri = cthread->sched_pri; in timer_compute_leeway() 1864 uint32_t tg_flags = thread_group_get_flags(thread_group_get(cthread)); in timer_compute_leeway() 1874 } else if (proc_get_effective_thread_policy(cthread, TASK_POLICY_DARWIN_BG) || in timer_compute_leeway() 1877 if (tcoal_qos_adjust(cthread, tshift, tmax_abstime, pratelimited)) { in timer_compute_leeway() 1891 } else if (cthread->sched_mode == TH_MODE_FIXED) { in timer_compute_leeway() 1895 } else if (tcoal_qos_adjust(cthread, tshift, tmax_abstime, pratelimited)) { in timer_compute_leeway() 1897 } else if (cthread->sched_mode == TH_MODE_TIMESHARE) { in timer_compute_leeway() 1919 timer_call_slop(uint64_t deadline, uint64_t now, uint32_t flags, thread_t cthread, boolean_t *prate… in timer_call_slop() argument 1928 timer_compute_leeway(cthread, urgency, &tcs_shift, &tcs_max_abstime, pratelimited); in timer_call_slop()
|
| H A D | work_interval.h | 145 bool work_interval_should_propagate(thread_t cthread, thread_t thread);
|
| H A D | sched_prim.c | 975 thread_t cthread = current_thread(); in thread_unblock() local 1023 if (aticontext == FALSE && work_interval_should_propagate(cthread, thread)) { in thread_unblock() 1024 work_interval_auto_join_propagate(cthread, thread); in thread_unblock() 1085 } else if (thread_get_tag_internal(cthread) & THREAD_TAG_CALLOUT) { in thread_unblock() 1087 if (cthread->callout_woken_from_icontext) { in thread_unblock() 1092 if (cthread->callout_woken_from_platform_idle) { in thread_unblock() 1098 cthread->callout_woke_thread = TRUE; in thread_unblock()
|
| /xnu-11215/osfmk/x86_64/ |
| H A D | pmap_pcid.c | 275 pcid_for_pmap_cpu_tuple(pmap_t cpmap, thread_t cthread, int ccpu) in pcid_for_pmap_cpu_tuple() argument 280 if ((cthread->machine.specFlags & CopyIOActive) == 0) { in pcid_for_pmap_cpu_tuple()
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_fault.c | 4341 thread_t cthread = current_thread(); in vm_fault_internal() local 4343 if (cthread->th_vm_faults_disabled) { in vm_fault_internal() 4349 ktriage_record(thread_tid(cthread), in vm_fault_internal() 4357 bool rtfault = (cthread->sched_mode == TH_MODE_REALTIME); in vm_fault_internal() 6003 set_thread_pagein_error(cthread, 0); in vm_fault_internal() 6654 vm_record_rtfault(cthread, fstart, trace_vaddr, type_of_fault); in vm_fault_internal() 8132 vm_record_rtfault(thread_t cthread, uint64_t fstart, vm_map_offset_t fault_vaddr, int type_of_fault) in vm_record_rtfault() argument 8137 uint64_t ctid = cthread->thread_id; in vm_record_rtfault() 8149 .btc_user_thread = cthread, in vm_record_rtfault()
|
| H A D | vm_resident.c | 9331 thread_t cthread; in vm_tag_bt() local 9334 cthread = current_thread(); in vm_tag_bt() 9335 if (__improbable(cthread == NULL)) { in vm_tag_bt() 9339 if ((name = thread_get_kernel_state(cthread)->allocation_name)) { in vm_tag_bt() 9346 kstackb = cthread->kernel_stack; in vm_tag_bt()
|