From 2cb2961c9f6062e867b6ccc3d9067f55c7b81ea4 Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 17 Nov 2011 11:17:57 -0800 Subject: Cleaning some code, redesigning a bit the stack allocation problem from the task manager, and actually implementing it properly. --- includes/Threads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/Threads.h') diff --git a/includes/Threads.h b/includes/Threads.h index a1f270e..256e8e3 100644 --- a/includes/Threads.h +++ b/includes/Threads.h @@ -41,7 +41,7 @@ template class Queue { public: Queue() { pthread_cond_init(&m_cond, NULL); } - ~Queue() { pthread_cond_destroy(&m_cond); } + ~Queue() { while (size()) pop(); pthread_cond_destroy(&m_cond); } void push(T & t) { m_lock.enter(); m_queue.push(t); -- cgit v1.2.3