Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://nagoya.apache.org/jira/secure/ViewIssue.jspa?key=EXLBR-1

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: EXLBR-1
    Summary: Timing bug in rg.apache.excalibur.thread.ThreadControl.join()
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Avalon Excalibur
 Components: 
             Thread

   Assignee: 
   Reporter: Pradeep Krishnan

    Created: Thu, 19 Feb 2004 9:27 PM
    Updated: Thu, 19 Feb 2004 9:27 PM
Environment: Mandrake 9.2 on Compaq Armada E500

Description:
The ThreadControl implimentation in 
org.apache.excalibur.thread.impl.DefaultThreadControl has a timing bug in the join() 
function. There is a small timing window between the time the worker thread has 
finished executing and before a call to the finish() method of the ThreadControl is 
made. This can cause the threads waiting on a join(0) to never wake-up.

The patch is simple: instead of delegating the join() to the m_thread, do a wait(). 
The finish() method of the org.apache.excalibur.thread.impl.DefaultThreadControl does 
a notifyAll()  and that should wake up the calling thread. 


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to