[reSIProcate] thread-safe version of gethostbyname for mac OSX

Jason Fischl jason at counterpath.com
Mon Oct 10 15:08:35 CDT 2005


On 10/10/05, Eric McMurry <emcmurry at estacado.net> 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.



More information about the resiprocate-devel mailing list