File: 030_executor-remove-thread-bug.patch

package info (click to toggle)
zthreads 2.3.2-12
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,536 kB
  • sloc: sh: 8,432; cpp: 6,032; ansic: 126; makefile: 109; javascript: 6
file content (16 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (4)
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() ));
 
       }