apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@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 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45298

--- Comment #10 from Lars Diehl <lars.diehl@fiducia.de> ---
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


Mime
View raw message