You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2006/05/02 23:19:06 UTC

svn commit: r399051 - /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/group/GroupChannel.java

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