[adasockets] Re: thread safety fix

Samuel Tardieu sam at rfc1149.net
Mon Feb 7 17:59:39 CET 2005


>>>>> "Dmitriy" == Dmitriy Anisimkov <anisimkov at ada-ru.org> writes:

Dmitriy> We should unlock Naming_Lock only after complete using
Dmitriy> "Res" access variable, because thread unsafety is because of
Dmitriy> C_Gethostbyname and C_Gethostbyaddr returning access to the
Dmitriy> internal static buffer. It is a common C thread unsafety.

Thanks Dmitriy, I have applied your patch to my development version
and it will be included in the next release of AdaSockets.

  Sam
-- 
Samuel Tardieu -- sam at rfc1149.net -- http://www.rfc1149.net/sam



More information about the AdaSockets mailing list