pthread地獄 part 2
■ このスレッドは過去ログ倉庫に格納されています
011493
2008/07/24(木) 09:47:40/* メインスレッドに処理終了を通知 */
pthread_mutex_lock(&m_end);
while (NULL != thr_end) {
pthread_cond_wait(&c_end, &m_end);
}
thr_end = pthread_self();
pthread_cond_broadcast(&c_end);
pthread_mutex_unlock(&m_end);
pthread_exit((void *)NULL);
■ このスレッドは過去ログ倉庫に格納されています