pthread_cond_wait()
摘要:
/************pthread_cond_wait()的使用方法**********/ pthread_mutex_lock(&qlock); pthread_cond_wait(&qready, &qlock); pthread_mutex_unlock(&qlock);/*****************************************************/The mutex passed to pthread_cond_wait protects the condition.The callerpasses it locked 阅读全文
posted @ 2011-11-25 14:02 evilying 阅读(16606) 评论(1) 推荐(3) 编辑