Return-Path: Delivered-To: apmail-excalibur-dev-archive@www.apache.org Received: (qmail 80532 invoked from network); 16 Apr 2005 15:39:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Apr 2005 15:39:05 -0000 Received: (qmail 54720 invoked by uid 500); 16 Apr 2005 15:39:05 -0000 Delivered-To: apmail-excalibur-dev-archive@excalibur.apache.org Received: (qmail 54683 invoked by uid 500); 16 Apr 2005 15:39:05 -0000 Mailing-List: contact dev-help@excalibur.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Excalibur Developers List" Reply-To: "Excalibur Developers List" Delivered-To: mailing list dev@excalibur.apache.org Received: (qmail 54669 invoked by uid 99); 16 Apr 2005 15:39:05 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 16 Apr 2005 08:39:03 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 8E4782DD for ; Sat, 16 Apr 2005 17:39:01 +0200 (CEST) Message-ID: <78469919.1113665941581.JavaMail.jira@ajax.apache.org> Date: Sat, 16 Apr 2005 17:39:01 +0200 (CEST) From: "Shash Chatterjee (JIRA)" To: dev@excalibur.apache.org Subject: [jira] Assigned: (EXLBR-1) Timing bug in rg.apache.excalibur.thread.ThreadControl.join() Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/EXLBR-1?page=history ] Shash Chatterjee reassigned EXLBR-1: ------------------------------------ Assign To: Shash Chatterjee > Timing bug in rg.apache.excalibur.thread.ThreadControl.join() > ------------------------------------------------------------- > > Key: EXLBR-1 > URL: http://issues.apache.org/jira/browse/EXLBR-1 > Project: Excalibur Components > Type: Bug > Components: Thread > Environment: Mandrake 9.2 on Compaq Armada E500 > Reporter: Pradeep Krishnan > Assignee: Shash Chatterjee > > 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. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.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: dev-unsubscribe@excalibur.apache.org For additional commands, e-mail: dev-help@excalibur.apache.org