Return-Path: X-Original-To: apmail-apr-bugs-archive@www.apache.org Delivered-To: apmail-apr-bugs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B50910A08 for ; Wed, 29 Jan 2014 08:24:20 +0000 (UTC) Received: (qmail 9596 invoked by uid 500); 29 Jan 2014 08:24:19 -0000 Delivered-To: apmail-apr-bugs-archive@apr.apache.org Received: (qmail 9421 invoked by uid 500); 29 Jan 2014 08:24:08 -0000 Mailing-List: contact bugs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apr.apache.org Delivered-To: mailing list bugs@apr.apache.org Received: (qmail 9394 invoked by uid 99); 29 Jan 2014 08:24:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jan 2014 08:24:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jan 2014 08:24:02 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 96DBB1CCA2; Wed, 29 Jan 2014 08:23:41 +0000 (UTC) From: bugzilla@apache.org To: bugs@apr.apache.org Subject: [Bug 45298] apr_os_thread_get() differs between windows and unix when thread is detached Date: Wed, 29 Jan 2014 08:23:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: APR X-Bugzilla-Component: APR X-Bugzilla-Version: 1.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: lars.diehl@fiducia.de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@apr.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45298 --- Comment #10 from Lars Diehl --- Created attachment 31269 --> https://issues.apache.org/bugzilla/attachment.cgi?id=31269&action=edit Proposed fix based on 1.4.8 I apologize - the proposal is based on APR Version 1.4.8 (which is the current version we are using). So far I was unable to build any 1.5.X or trunk versions on windows due to compilation errors. The proposal contains two changes: 1. Start threads suspended in order to work around the race-condition when saving the thread handle in apr_thread_create(). 2. Use GetCurrentThread() API in apr_os_thread_current(). I'm not sure why in the current implementation the handle is duplicated. Maybe I missed something here. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org For additional commands, e-mail: bugs-help@apr.apache.org