2 Mar
2010
2 Mar
'10
3:22 a.m.
Alex Massover wrote:
Also regardless of rc_handle the lib has a lot of non-reentrant functions (inet_ntoa, localtime, gmtime, random, rand...). Does it supposed to be thread-safe even if there's no logical issue with rc_handle?
Probably not. For a thread-safe RADIUS client library (LGPL), see freeradius-server, src/lib. See src/main/radclient.c for an example client. The client doesn't use threads. But the functions in src/lib are thread-safe if they're protected by a mutex lock. Alan DeKok.