Re: [reSIProcate] thread-safe version of gethostbyname for mac OSX
On 10/10/05, Eric McMurry <emcmurry@xxxxxxxxxxxx> wrote:
> Jason,
>
> The gethostbyname() family was made thread safe in OS X 10.2 (stated
> on page 8 in here: http://developer.apple.com/technotes/tn2002/pdf/
> tn2053.pdf). They don't say how they did it and the interface didn't
> change, so I would expect it to block other threads making the same
> call. Unfortunately, the man page is from 1995, so it is not
> accurate or helpful in this regard.
>
They probably use thread-specific storage for the allocations. But in
any case, this is good news. Thanks for the tip.