摘要: pthead_cond_t 的使用源代码1: 1 #include <stdio.h> 2 #include <pthread.h> 3 #include <stdlib.h> 4 #include <unistd.h> 5 6 pthread_cond_t qready = PTHREAD_COND_INITIALIZER; 7 pthread_mutex_t qlock = PTHREAD_MUTEX_INITIALIZER; 8 int constant = 0; 9 10 void *prints(void *arg)11 {12 pth 阅读全文
posted @ 2013-05-27 09:48 life91 阅读(512) 评论(0) 推荐(0) 编辑