Commit ac154ac0 authored by mir's avatar mir

Try the previous thread pool. Tests should pass

parent c38a1a49
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
// desired thread pool // desired thread pool
// Work stealing thread pool // Work stealing thread pool
#define task_manager_t ws_task_manager_t // #define task_manager_t ws_task_manager_t
// Previous single queue OAI thread pool // Previous single queue OAI thread pool
//#define task_manager_t tpool_t #define task_manager_t tpool_t
// Most rated C thread pool in github // Most rated C thread pool in github
//#define task_manager_t threadpool //#define task_manager_t threadpool
......
...@@ -343,6 +343,9 @@ static inline int abortTpool(tpool_t *t) { ...@@ -343,6 +343,9 @@ static inline int abortTpool(tpool_t *t) {
thread = thread->next; thread = thread->next;
} }
if(t->allthreads != NULL)
free(t->allthreads);
return nbRemoved; return nbRemoved;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment