The pthread_cond_signal() call unblocks at least one of the
threads that are blocked on the specified condition variable
cond (if any threads are blocked on cond).
The pthread_cond_signal() and pthread_cond_broadcast() func-
tions have no effect if there are no threads currently
blocked on cond.
按 manpage 的说法,如果之前没有线程在 wait 的话,那么 signal 调用就等于是空操作。
这个 signal 并不会被保留,再被稍后产生的 wait 调用捕获。
2008/10/29 浪迹天涯 <qj-qi...@sohu.com>: