get_t_state
if (task && get_t_state(&connection->ack_receiver) == RUNNING)
|| get_t_state(&connection->ack_receiver) != RUNNING
if (get_t_state(&connection->worker) == RUNNING)
while (get_t_state(&connection->receiver) == RUNNING) {
while (get_t_state(thi) == RUNNING) {
if (get_t_state(&connection->receiver) == EXITING)
if (get_t_state(&connection->worker) != RUNNING)
while (get_t_state(thi) == RUNNING) {
if (get_t_state(thi) == RUNNING) {
if (get_t_state(thi) != RUNNING)