pthread_cond init, code incomplete