11 void *(*thread_f)(
void *) = p_ctx->
thread_f;
12 void *p_arg = p_ctx->
p_arg;
59 int ret, init_stage = 0;
60 ret = pthread_mutex_init(&p_ctx->
state_lock, NULL);
65 ret = pthread_cond_init(&p_ctx->
state_cond, NULL);
78 if (init_stage >= 2) {
79 ret = pthread_cond_destroy(&p_ctx->
state_cond);
82 if (init_stage >= 1) {
83 ret = pthread_mutex_destroy(&p_ctx->
state_lock);
105 ret = pthread_cond_destroy(&p_ctx->
state_cond);
107 ret = pthread_mutex_destroy(&p_ctx->
state_lock);
147 fprintf(p_os,
"%*s== NULL XSTREAM CONTEXT ==\n", indent,
"");
157 state =
"REQ_TERMINATE";
164 "%*s== XSTREAM CONTEXT (%p) ==\n"
166 indent,
"", (
void *)p_ctx, indent,
"", state);