remove threadpool_unlink()

thread removes itself from the list, this is trival in place
This commit is contained in:
Christian Thaeter 2009-12-24 01:45:44 +01:00
parent f2406c23a1
commit bddb23d111
3 changed files with 1 additions and 15 deletions

View file

@ -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,

View file

@ -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:

View file

@ -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