Revision: 2339
http://sourceforge.net/p/swingme/code/2339
Author: yuranet
Date: 2015-03-14 12:44:18 +0000 (Sat, 14 Mar 2015)
Log Message:
-----------
more logging in thread pool
Modified Paths:
--------------
UtilME/src/net/yura/mobile/util/QueueProcessorThread.java
Modified: UtilME/src/net/yura/mobile/util/QueueProcessorThread.java
===================================================================
--- UtilME/src/net/yura/mobile/util/QueueProcessorThread.java 2015-03-06 01:00:09 UTC (rev 2338)
+++ UtilME/src/net/yura/mobile/util/QueueProcessorThread.java 2015-03-14 12:44:18 UTC (rev 2339)
@@ -44,6 +44,7 @@
synchronized(this) {
running = false;
notifyAll();
+ // interrupt does not work on some devices, so we can not rely on it.
//for (int c=0;c<threads.size();c++) {
// ((Thread)threads.elementAt(c)).interrupt();
//}
@@ -100,6 +101,8 @@
}
}
catch(InterruptedException ex) {
+ //#debug info
+ Logger.info("[QueueProcessorThread-"+Thread.currentThread().getName()+"] Interrupted");
break runLoop;
}
catch (Exception ex) {
@@ -112,6 +115,9 @@
//#debug error
Logger.error("[QueueProcessorThread-" + Thread.currentThread().getName() + "] fatal error", t);
}
+
+ //#debug info
+ Logger.info("[QueueProcessorThread-"+Thread.currentThread().getName()+"] Finished");
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|