C-Thread-Pool icon indicating copy to clipboard operation
C-Thread-Pool copied to clipboard

Should we destroy mutex and cond?

Open onemouth opened this issue 7 years ago • 1 comments

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.

onemouth avatar Sep 06 '17 07:09 onemouth

i think we need

atefrice avatar Nov 08 '21 08:11 atefrice