>>579
condは適当に初期化。

A() {
〜;
pthread_cond_signal(&cond);
return;
}

B () {
pthread_cond_wait(&cond);
〜;
return;
}