Update readme

This commit is contained in:
2019-10-26 15:20:06 -04:00
parent bfc7f4ddb6
commit 0d4deb3eb3
12 changed files with 1032 additions and 43 deletions

View File

@@ -167,7 +167,9 @@ void tpool_destroy(tpool_t *pool) {
for (size_t i = 0; i < pool->thread_cnt; i++) {
pthread_t thread = pool->threads[i];
pthread_cancel(thread);
if (thread != 0) {
pthread_cancel(thread);
}
}
pthread_mutex_destroy(&(pool->work_mutex));