Lines Matching defs:self

205 	register thread_t	self = current_thread();
206 int option = self->saved.swtch.option;
209 thread_depress_abort_internal(self);
224 register thread_t thread, self = current_thread();
251 if (ipc_port_translate_send(self->task->itk_space,
259 if (thread == self) {
308 self->saved.swtch.option = option;
310 thread_run(self, (thread_continue_t)thread_switch_continue, NULL, thread);
326 self->saved.swtch.option = option;
331 thread_depress_abort_internal(self);
344 register thread_t self = current_thread();
349 thread_lock(self);
350 if (!(self->sched_flags & TH_SFLAG_DEPRESSED_MASK)) {
351 processor_t myprocessor = self->last_processor;
353 self->sched_pri = DEPRESSPRI;
354 myprocessor->current_pri = self->sched_pri;
355 self->sched_flags |= TH_SFLAG_DEPRESS;
359 if (!timer_call_enter(&self->depress_timer, deadline, TIMER_CALL_CRITICAL))
360 self->depress_timer_active++;
363 thread_unlock(self);
429 thread_t self)
433 assert(self == current_thread());
436 if (self->sched_mode == TH_MODE_FIXED) {
440 total_computation = abstime - self->computation_epoch;
441 total_computation += self->computation_metered;
446 thread_lock(self);
447 if (!(self->sched_flags & TH_SFLAG_DEPRESSED_MASK)) {
448 self->sched_pri = DEPRESSPRI;
449 myprocessor->current_pri = self->sched_pri;
451 self->computation_epoch = abstime;
452 self->computation_metered = 0;
453 self->sched_flags |= TH_SFLAG_POLLDEPRESS;
456 if (!timer_call_enter(&self->depress_timer, abstime, TIMER_CALL_CRITICAL))
457 self->depress_timer_active++;
458 thread_unlock(self);