Lines Matching refs:Mon_cur_ctx
28 /* mutex protects Mon_cur_ctx, Mon_ctx_head, and ctx_start */
35 ** Mon_cur_ctx == NULL || Mon_cur_ctx is thread which was started the longest
48 static SMFICTX_PTR Mon_cur_ctx = NULL;
103 end = Mon_cur_ctx->ctx_start + Mon_exec_time; \
109 (long) Mon_cur_ctx->ctx_id, Mon_cur_ctx->ctx_state);\
117 if (Mon_cur_ctx != NULL && Mon_cur_ctx->ctx_start > 0)
131 if (Mon_cur_ctx != NULL && Mon_cur_ctx->ctx_start > 0)
189 if (NULL == Mon_cur_ctx)
191 Mon_cur_ctx = ctx;
219 if (Mon_cur_ctx == ctx)
222 Mon_cur_ctx = NULL;
224 Mon_cur_ctx = SM_TAILQ_FIRST(&Mon_ctx_head);