thread/m_threadpool.c
/*! Free the queue
 *  \param pool handle to initialized threadpool */
Free the queue
\param pool handle to initialized threadpool
Free the queue \ param pool handle to initialized threadpool
static void M_threadpool_queue_finish(M_threadpool_t *pool)
{
	M_threadpool_queue_t *q;
	while ((q = M_llist_take_node(M_llist_first(pool->queue))) != NULL)
		M_free(q);
	M_llist_destroy(pool->queue, M_TRUE);
	pool->queue          = NULL;
	pool->queue_max_size = 0;
	M_thread_mutex_destroy(pool->queue_lock);
	M_thread_cond_destroy(pool->queue_icond);
	M_thread_cond_destroy(pool->queue_ocond);
}
static void M_threadpool_queue_finish ( M_threadpool_t * pool ) { M_threadpool_queue_t * q ; while ( ( q = M_llist_take_node ( M_llist_first ( pool -> queue ) ) ) != NULL ) M_free ( q ) ; M_llist_destroy ( pool -> queue , M_TRUE ) ; pool -> queue = NULL ; pool -> queue_max_size = 0 ; M_thread_mutex_destroy ( pool -> queue_lock ) ; M_thread_cond_destroy ( pool -> queue_icond ) ; M_thread_cond_destroy ( pool -> queue_ocond ) ; }
Free the queue
  \param pool handle to initialized threadpool
Free the queue \ param pool handle to initialized threadpool
/* Destroy any queue entries that still exist */