Lines Matching refs:continuation
1472 thread_continue_t continuation = self->continuation;
1499 if (continuation != NULL) {
1512 continuation = thread->continuation;
1542 thread->continuation = thread->parameter = NULL;
1549 assert(continuation);
1550 call_continuation(continuation, parameter, thread->wait_result);
1554 /* same thread but with continuation */
1559 self->continuation = self->parameter = NULL;
1564 call_continuation(continuation, parameter, self->wait_result);
1622 thread = machine_switch_context(self, continuation, thread);
1623 TLOG(1,"thread_invoke: returning machine_switch_context: self %p continuation %p thread %p\n", self, continuation, thread);
1630 if (continuation) {
1631 self->continuation = self->parameter = NULL;
1636 call_continuation(continuation, parameter, self->wait_result);
1662 * If blocked at a continuation, discard
1665 if (thread->continuation != NULL && thread->kernel_stack != 0)
1794 * If a continuation is specified, then thread_invoke will
1796 * thread resumes, it will execute the continuation function
1803 thread_continue_t continuation,
1828 self->continuation = continuation;
1850 thread_continue_t continuation)
1852 return thread_block_reason(continuation, NULL, AST_NONE);
1857 thread_continue_t continuation,
1860 return thread_block_reason(continuation, parameter, AST_NONE);
1876 thread_continue_t continuation,
1884 self->continuation = continuation;
1905 * a new stack after a continuation.
1912 register thread_continue_t continuation;
1915 continuation = self->continuation;
1920 self->continuation = self->parameter = NULL;
1928 call_continuation(continuation, parameter, self->wait_result);