agoo_con_res_append(agooCon c, agooRes res) {
    pthread_mutex_lock(&c->res_lock);
    if (NULL == c->res_tail) {
	c->res_head = res;
    } else {
	c->res_tail->next = res;
    }
    c->res_tail = res;
    pthread_mutex_unlock(&c->res_lock);
}
agoo_con_res_append(agooCon c, agooRes res) {
    pthread_mutex_lock(&c->res_lock);
    if (NULL == c->res_tail) {
	c->res_head = res;
    } else {
	c->res_tail->next = res;
    }
    c->res_tail = res;
    pthread_mutex_unlock(&c->res_lock);
}