Lines Matching defs:reason
522 thread->reason = AST_NONE;
1470 ast_t reason)
1528 self->reason = reason;
1535 self->reason, (int)thread, self->sched_pri, thread->sched_pri, 0);
1608 self->reason = reason;
1615 (int)self->reason, (int)thread, self->sched_pri, thread->sched_pri, 0);
1688 thread->reason |= AST_QUANTUM;
1698 thread->reason |= AST_QUANTUM;
1707 if ((thread->reason & (AST_HANDOFF|AST_QUANTUM)) == AST_HANDOFF) {
1709 thread->reason |= AST_QUANTUM;
1721 if (thread->reason & AST_QUANTUM)
1724 if (thread->reason & AST_PREEMPT)
1729 thread->reason = AST_NONE;
1805 ast_t reason)
1816 if (!(reason & AST_PREEMPT))
1822 if (reason & AST_YIELD)
1835 } while (!thread_invoke(self, new_thread, reason));