apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: bug in apr_os_thread_current ?
Date Sun, 24 Nov 2002 08:19:18 GMT

On Saturday, November 23, 2002, at 10:39  PM, Justin Erenkrantz wrote:

> --On Friday, November 22, 2002 6:51 AM -0600 "William A. Rowe, Jr." 
> <wrowe@apache.org> wrote:
>
>> Agreed that it is a bug.  The question is whether it even makes
>> sense to use the thread handle or thread ID.
>>
>> Who is using apr_os_thread_current() and if so, what are you
>> plugging it into?
>
> FWIW, flood is using it as various locations to provide unique 
> per-process ids (OpenSSL requires unique thread ids in order to be 
> threadsafe).  But, it's not passing them to a native OS call, so the 
> value doesn't really matter.  -- justin

Yeah, and as soon as we come up with something better, we will stop
using it in this way. It was a temporary hack to get a unique integer
for each "farmer".

-aaron


Mime
View raw message