Lines Matching refs:self
186 register thread_t self = current_thread();
187 int option = self->saved.swtch.option;
190 thread_depress_abort_internal(self);
205 register thread_t thread, self = current_thread();
230 if (ipc_port_translate_send(self->task->itk_space,
238 if (thread == self) {
287 self->saved.swtch.option = option;
289 thread_run(self, (thread_continue_t)thread_switch_continue, NULL, thread);
305 self->saved.swtch.option = option;
310 thread_depress_abort_internal(self);
323 register thread_t self = current_thread();
328 thread_lock(self);
329 if (!(self->sched_mode & TH_MODE_ISDEPRESSED)) {
330 processor_t myprocessor = self->last_processor;
332 self->sched_pri = DEPRESSPRI;
333 myprocessor->current_pri = self->sched_pri;
334 self->sched_mode |= TH_MODE_DEPRESS;
338 if (!timer_call_enter(&self->depress_timer, deadline))
339 self->depress_timer_active++;
342 thread_unlock(self);
408 thread_t self)
412 assert(self == current_thread());
415 if (!(self->sched_mode & (TH_MODE_REALTIME|TH_MODE_TIMESHARE))) {
419 total_computation = abstime - self->computation_epoch;
420 total_computation += self->computation_metered;
425 thread_lock(self);
426 if (!(self->sched_mode & TH_MODE_ISDEPRESSED)) {
427 self->sched_pri = DEPRESSPRI;
428 myprocessor->current_pri = self->sched_pri;
430 self->computation_epoch = abstime;
431 self->computation_metered = 0;
432 self->sched_mode |= TH_MODE_POLLDEPRESS;
435 if (!timer_call_enter(&self->depress_timer, abstime))
436 self->depress_timer_active++;
437 thread_unlock(self);