Update of /cvsroot/freenet/freenet/src/freenet/thread
In directory sc8-pr-cvs1:/tmp/cvs-serv2049/thread

Modified Files:
        FastThreadFactory.java QThreadFactory.java 
Log Message:
Set pooled thread priority on the thread group they belong to once rather than on each 
thread every time one is created.

Index: FastThreadFactory.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/thread/FastThreadFactory.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -w -r1.24 -r1.25
--- FastThreadFactory.java      31 Oct 2003 18:13:14 -0000      1.24
+++ FastThreadFactory.java      14 Nov 2003 08:56:13 -0000      1.25
@@ -73,7 +73,6 @@
         FThread(int num, Runnable job) {
             super(tg, "FThread-" + num);
             this.job = job;
-            super.setPriority(Thread.NORM_PRIORITY);
             super.start();
         }
 

Index: QThreadFactory.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/thread/QThreadFactory.java,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -w -r1.43 -r1.44
--- QThreadFactory.java 31 Oct 2003 19:21:22 -0000      1.43
+++ QThreadFactory.java 14 Nov 2003 08:56:13 -0000      1.44
@@ -173,7 +173,6 @@
         } else {
                        thread = headLock.pop(); // thread cannot be null.
                }
-               thread.setPriority(Thread.NORM_PRIORITY);
                // synchronize so that getThread can't sneak in between
                // test for job == null and this.wait() in thread.run().
                synchronized (thread) {

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to