leosutic 2003/02/26 01:53:11 Modified: src/java/org/apache/log/output AsyncLogTarget.java Log: Fixed a deadlock. See http://marc.theaimsgroup.com/?l=avalon-dev&m=104496210014916&w=2 for a description of the problem. Holding off on the second problem (the closing of log targets). Revision Changes Path 1.14 +2 -1 avalon-logkit/src/java/org/apache/log/output/AsyncLogTarget.java Index: AsyncLogTarget.java =================================================================== RCS file: /home/cvs/avalon-logkit/src/java/org/apache/log/output/AsyncLogTarget.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- AsyncLogTarget.java 9 Feb 2003 23:33:23 -0000 1.13 +++ AsyncLogTarget.java 26 Feb 2003 09:53:11 -0000 1.14 @@ -132,7 +132,7 @@ { synchronized( m_list ) { - final int size = m_list.size(); + int size = m_list.size(); while( m_queueSize <= size ) { try @@ -145,6 +145,7 @@ //Maybe we should log it though for //now lets ignore it } + size = m_list.size(); } m_list.addFirst( event );
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]