Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should we destroy mutex and cond? #59

Open
onemouth opened this issue Sep 6, 2017 · 1 comment
Open

Should we destroy mutex and cond? #59

onemouth opened this issue Sep 6, 2017 · 1 comment

Comments

@onemouth
Copy link

onemouth commented Sep 6, 2017

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.

@atefrice
Copy link

atefrice commented Nov 8, 2021

i think we need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants