Condition Variables 條件變量

pthread_cond_wait(pthread_cond_t *, pthread_mutex *) 等待一個條件變量,並且釋放傳入的mutex鎖 標準的用法就是 pthread_mutex_lock(&mutex); while(xxx) pthread_cond_wait(&cond, &mutex); pthread_mutex_unlock(&mutex); 其中phread_cond
相關文章
相關標籤/搜索