state-threads
[Top] [All Lists]

Private Data

To: state-threads@xxxxxxxxxxx
Subject: Private Data
From: Danil Melomedman <dmelomed@xxxxxxxx>
Date: Mon, 13 Nov 2000 20:41:21 -0500
Sender: owner-state-threads@xxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>