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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]