I am putting together a POP3 server. It allocates a structure per
message, all those structures must be private. There's also an array of
pointers to those structs (should also be private). What would be a good
approach to use st_thread_setspecific() so that none of the structures
are damaged? Do I need a key per malloced struct? I can see how one
struct can easily be privatized, but can't imagine a good way to do it
with many dynamically allocated structs. Help would be greately
appreciated. Regards.
--
Dan
|