一段使用 mutex 和 条件变量 pthread_cond_wait 的例子
摘要:
http://blog.csdn.net/nightfallrove/archive/2008/05/26/2483403.aspx #include #include #include #include using namespace std;int Number = 0;pthread_mutex_t NMutex;pthread_cond_t NCond;void *thread1(void... 阅读全文
posted @ 2008-09-06 22:04 cy163 阅读(2982) 评论(1) 推荐(0)
浙公网安备 33010602011771号