Description: fix executor remove thread bug
Author: Cleto Martin Angelina <cleto.martin@gmail.com>
Last-Update: 2011-02-16
Index: zthreads/src/PoolExecutor.cxx
===================================================================
--- zthreads.orig/src/PoolExecutor.cxx
+++ zthreads/src/PoolExecutor.cxx
@@ -400,7 +400,7 @@ namespace ZThread {
       void unregisterThread() {
 
         Guard<TaskQueue> g(_taskQueue);
-        std::remove(_threads.begin(), _threads.end(), ThreadImpl::current());
+	 _threads.erase(std::remove(_threads.begin(), _threads.end(), ThreadImpl::current() ));
 
       }
 
