Lines Matching defs:self

207 	thread_t self = current_thread();
208 if (!callback || self->sched_call != callback) {
212 thread_lock(self);
213 thread_sched_call(self, NULL);
214 thread_unlock(self);
223 thread_t self = current_thread();
225 thread_lock(self);
226 thread_sched_call(self, callback);
227 thread_unlock(self);
234 register thread_t self = current_thread();
235 int option = self->saved.swtch.option;
236 boolean_t reenable_workq_callback = self->saved.swtch.reenable_workq_callback;
240 thread_depress_abort_internal(self);
258 register thread_t thread, self = current_thread();
309 if (ipc_port_translate_send(self->task->itk_space,
317 if (thread == self) {
332 if (thread->task != self->task) {
347 int new_policy = proc_get_effective_thread_policy(self, TASK_POLICY_IO);
395 self->saved.swtch.option = option;
396 self->saved.swtch.reenable_workq_callback = reenable_workq_callback;
398 thread_run(self, (thread_continue_t)thread_switch_continue, NULL, thread);
414 self->saved.swtch.option = option;
415 self->saved.swtch.reenable_workq_callback = reenable_workq_callback;
420 thread_depress_abort_internal(self);
436 register thread_t self = current_thread();
441 thread_lock(self);
442 if (!(self->sched_flags & TH_SFLAG_DEPRESSED_MASK)) {
443 processor_t myprocessor = self->last_processor;
445 self->sched_pri = DEPRESSPRI;
446 myprocessor->current_pri = self->sched_pri;
447 self->sched_flags |= TH_SFLAG_DEPRESS;
451 if (!timer_call_enter(&self->depress_timer, deadline, TIMER_CALL_USER_CRITICAL))
452 self->depress_timer_active++;
455 thread_unlock(self);
521 thread_t self)
525 assert(self == current_thread());
528 if (self->sched_mode == TH_MODE_FIXED) {
532 total_computation = abstime - self->computation_epoch;
533 total_computation += self->computation_metered;
538 thread_lock(self);
539 if (!(self->sched_flags & TH_SFLAG_DEPRESSED_MASK)) {
540 self->sched_pri = DEPRESSPRI;
541 myprocessor->current_pri = self->sched_pri;
543 self->computation_epoch = abstime;
544 self->computation_metered = 0;
545 self->sched_flags |= TH_SFLAG_POLLDEPRESS;
548 if (!timer_call_enter(&self->depress_timer, abstime, TIMER_CALL_USER_CRITICAL))
549 self->depress_timer_active++;
554 thread_unlock(self);