On Thu, Dec 11, 2014 at 12:43:08PM +0000, Vinay Kumar wrote:
> Hi All,
> Is 'c-ares' api 'ares_gethostbyname()' is thread safe function?The 'gethostbyname' function is obsolete. There exists a reentrant version gethostbyname_r().
> Similarly is there any reentrant version of 'ares_gethostbyname()'? or 'ares_gethostbyname()' itself is reentrant function?
> Regards,Vinay
As long as each thread uses its own ares context that I would say yes..
I'm not the biggest thread expert around, though.
Received on 2014-12-11