per-module per-thread constructors and destructors

Alan DeKok aland at
Wed Aug 31 01:08:55 CEST 2005

Frank Cusack <fcusack at> wrote:
> Someone just pointed out pthread_key_create() to me, I'll use that
> instead.  It's exactly what I wanted.

  Sounds good.

  My $0.02, however, is that per-thread FD's probably aren't
necessary.  There may be 100's of threads in the server, each of which
is in your module only a small amount of time.  So 10 FD's may be good

  Alan DeKok.

More information about the Freeradius-Devel mailing list