1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
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() ));
}
|