tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r399051 - /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/group/GroupChannel.java
Date Tue, 02 May 2006 21:19:06 GMT
Author: fhanik
Date: Tue May  2 14:19:03 2006
New Revision: 399051

URL: http://svn.apache.org/viewcvs?rev=399051&view=rev
Log:
moved around code and made the heartbeat thread be low priority

Modified:
    tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/group/GroupChannel.java

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/group/GroupChannel.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/group/GroupChannel.java?rev=399051&r1=399050&r2=399051&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/group/GroupChannel.java
(original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/group/GroupChannel.java
Tue May  2 14:19:03 2006
@@ -250,7 +250,6 @@
     public synchronized void stop(int svc) throws ChannelException {
         if (hbthread != null) {
             hbthread.stopHeartbeat();
-            hbthread.interrupt();
             hbthread = null;
         }
         super.stop(svc);
@@ -369,6 +368,7 @@
         protected long sleepTime;
         public HeartbeatThread(GroupChannel channel, long sleepTime) {
             super();
+            this.setPriority(MIN_PRIORITY);
             setName("GroupChannel-Heartbeat-"+inc());
             setDaemon(true);
             this.channel = channel;
@@ -376,6 +376,7 @@
         }
         public void stopHeartbeat() {
             doRun = false;
+            interrupt();
         }
         
         public void run() {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message