Lines Matching refs:tmp_msg_q
100 msg_q* tmp_msg_q; in msg_q_init() local
101 tmp_msg_q = (msg_q*)calloc(1, sizeof(msg_q)); in msg_q_init()
102 if( tmp_msg_q == NULL ) in msg_q_init()
108 if( linked_list_init(&tmp_msg_q->msg_list) != 0 ) in msg_q_init()
111 free(tmp_msg_q); in msg_q_init()
115 if( pthread_mutex_init(&tmp_msg_q->list_mutex, NULL) != 0 ) in msg_q_init()
118 linked_list_destroy(&tmp_msg_q->msg_list); in msg_q_init()
119 free(tmp_msg_q); in msg_q_init()
123 if( pthread_cond_init(&tmp_msg_q->list_cond, NULL) != 0 ) in msg_q_init()
126 linked_list_destroy(&tmp_msg_q->msg_list); in msg_q_init()
127 pthread_mutex_destroy(&tmp_msg_q->list_mutex); in msg_q_init()
128 free(tmp_msg_q); in msg_q_init()
132 tmp_msg_q->unblocked = 0; in msg_q_init()
134 *msg_q_data = tmp_msg_q; in msg_q_init()