【发布时间】:2013-05-03 14:26:57
【问题描述】:
Pthreads 相关问题。
假设我想动态创建 2 个条件变量。
这样可以吗:
pthread_cond_t * a = new pthread_cond_t();
pthread_cond_t * b = new pthread_cond_t();
pthread_cond_init(&a , NULL);
pthread_cond_init(&b , NULL);
或者它们是同一个条件变量?
【问题讨论】:
标签: c++ pthreads conditional