psmith      2003/09/23 16:12:07

  Modified:    src/java/org/apache/log4j/chainsaw Generator.java
  Log:
  Lowered the priority of the thread used to generate events
  to stop it from chewing too much CPU.
  
  Revision  Changes    Path
  1.4       +1 -0      jakarta-log4j/src/java/org/apache/log4j/chainsaw/Generator.java
  
  Index: Generator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/Generator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Generator.java    22 Sep 2003 06:57:04 -0000      1.3
  +++ Generator.java    23 Sep 2003 23:12:07 -0000      1.4
  @@ -136,6 +136,7 @@
      */
     public void activateOptions() {
       thread = new Thread(this);
  +    thread.setPriority(Thread.MIN_PRIORITY);
       thread.start();
     }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to