cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1138919 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/AutomaticWorkQueueImpl.java
Date Thu, 23 Jun 2011 15:11:05 GMT
Author: ningjiang
Date: Thu Jun 23 15:11:04 2011
New Revision: 1138919

URL: http://svn.apache.org/viewvc?rev=1138919&view=rev
Log:
CXF-3614 Fixed the Thread leak of AutomaticWorkQueueImpl

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/AutomaticWorkQueueImpl.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/AutomaticWorkQueueImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/AutomaticWorkQueueImpl.java?rev=1138919&r1=1138918&r2=1138919&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/AutomaticWorkQueueImpl.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/AutomaticWorkQueueImpl.java Thu
Jun 23 15:11:04 2011
@@ -199,6 +199,8 @@ public class AutomaticWorkQueueImpl exte
         
         public void shutdown() {
             shutdown.set(true);
+            // to exit the waiting thread
+            interrupt();
         }
         
         public void run() {



Mime
View raw message