diff --git a/src/backend/threadpool.c b/src/backend/threadpool.c index 2a33978d6..d7c13551e 100644 --- a/src/backend/threadpool.c +++ b/src/backend/threadpool.c @@ -96,14 +96,6 @@ lumiera_threadpool_destroy(void) } } -void lumiera_threadpool_unlink(LumieraThread thread) -{ - REQUIRE (thread, "invalid thread given"); - REQUIRE (thread->kind < LUMIERA_THREADCLASS_COUNT, "thread belongs to an unknown pool kind: %d", thread->kind); - llist_unlink(&thread->node); - ENSURE (llist_is_empty(&thread->node), "failed to unlink the thread"); -} - LumieraThread lumiera_threadpool_acquire_thread(enum lumiera_thread_class kind, diff --git a/src/backend/threadpool.h b/src/backend/threadpool.h index de545876c..572727e3e 100644 --- a/src/backend/threadpool.h +++ b/src/backend/threadpool.h @@ -87,12 +87,6 @@ lumiera_threadpool_init(); void lumiera_threadpool_destroy(void); -/** - * Just remove the thread structure from an associated pool list. - */ -void -lumiera_threadpool_unlink(LumieraThread thread); - #endif /* // Local Variables: diff --git a/src/backend/threads.c b/src/backend/threads.c index a75b7f81b..9c4cc9f1f 100644 --- a/src/backend/threads.c +++ b/src/backend/threads.c @@ -160,7 +160,7 @@ lumiera_thread_destroy (LumieraThread self) { REQUIRE (self, "trying to destroy an invalid thread"); - lumiera_threadpool_unlink(self); + llist_unlink (&self->node); // get the pthread out of the processing loop // need to signal to the thread that it should start quitting