diff options
Diffstat (limited to 'lib/pthreadpool/pthreadpool.c')
-rw-r--r-- | lib/pthreadpool/pthreadpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pthreadpool/pthreadpool.c b/lib/pthreadpool/pthreadpool.c index eaddd4426d2..f97cdcc6c15 100644 --- a/lib/pthreadpool/pthreadpool.c +++ b/lib/pthreadpool/pthreadpool.c @@ -534,7 +534,7 @@ int pthreadpool_add_job(struct pthreadpool *pool, int job_id, return res; } - res = pthread_create(&thread_id, NULL, pthreadpool_server, + res = pthread_create(&thread_id, &thread_attr, pthreadpool_server, (void *)pool); if (res == 0) { pool->num_threads += 1; |