Codebase list fstrm / fac2a91
destroy condition variable and mutexes in fstrm_iothr_destroy() Evan Hunt 7 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
360360 (*iothr)->shutting_down = true;
361361 pthread_cond_signal(&(*iothr)->cv);
362362 pthread_join((*iothr)->thr, NULL);
363 pthread_cond_destroy(&(*iothr)->cv);
364 pthread_mutex_destroy(&(*iothr)->cv_lock);
365 pthread_mutex_destroy(&(*iothr)->get_queue_lock);
363366
364367 /* Destroy the writer by calling its 'destroy' method. */
365368 (void)fstrm_writer_destroy(&(*iothr)->writer);