C-Thread-Pool
C-Thread-Pool copied to clipboard
Should we destroy mutex and cond?
Hi, There is
pthread_mutex_init(&(thpool_p->thcount_lock), NULL);
pthread_cond_init(&thpool_p->threads_all_idle, NULL);
But I can't find pthread_mutex_destroy
and pthread_cond_destroy
call,
should those two functions be called at thpool_destroy()
?
Thanks.
i think we need