destroy condition variable and mutexes in fstrm_iothr_destroy()
Evan Hunt
7 years ago
360 | 360 | (*iothr)->shutting_down = true; |
361 | 361 | pthread_cond_signal(&(*iothr)->cv); |
362 | 362 | 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); | |
363 | 366 | |
364 | 367 | /* Destroy the writer by calling its 'destroy' method. */ |
365 | 368 | (void)fstrm_writer_destroy(&(*iothr)->writer); |