Return-Path: Delivered-To: apmail-apr-bugs-archive@www.apache.org Received: (qmail 28440 invoked from network); 27 Jun 2008 12:56:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jun 2008 12:56:29 -0000 Received: (qmail 91829 invoked by uid 500); 27 Jun 2008 12:56:31 -0000 Delivered-To: apmail-apr-bugs-archive@apr.apache.org Received: (qmail 91796 invoked by uid 500); 27 Jun 2008 12:56:31 -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 91785 invoked by uid 99); 27 Jun 2008 12:56:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jun 2008 05:56:31 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jun 2008 12:55:49 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 1D754234C14D; Fri, 27 Jun 2008 05:56:09 -0700 (PDT) From: bugzilla@apache.org To: bugs@apr.apache.org Subject: DO NOT REPLY [Bug 45298] New: apr_os_thread_get() differs between windows and unix when thread is detached X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: APR X-Bugzilla-Component: APR X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joe.Mudd@sas.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@apr.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 27 Jun 2008 05:56:09 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45298 Summary: apr_os_thread_get() differs between windows and unix when thread is detached Product: APR Version: HEAD Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: APR AssignedTo: bugs@apr.apache.org ReportedBy: Joe.Mudd@sas.com On Windows when a thread is created detached or apr_thread_detach() is called, the apr_thread_t->td member gets set to NULL. Therefore, when apr_os_thread_get() is called, NULL is returned. This differs from the UNIX implementation which always returns the pthread_t * even if the thread is detached. Also, similar to Bug 42728, it appears to be possible for apr_os_thread_get() to be called in the created thread before apr_thread_create() in the creating thread has had a chance to set thd->td. Perhaps threads on Windows should be created with CREATE_SUSPENDED flag and ResumeThread() should be called once thd->td has been set. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- 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