[Pdns-dev] thread id in backend?

Norbert Sendetzky norbert at linuxnetworks.de
Wed Dec 17 22:43:12 CET 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 17 December 2003 22:36, bert hubert wrote:
> On Wed, Dec 17, 2003 at 10:18:09PM +0100, Norbert Sendetzky wrote:
> > Does any posix thread implementation uses a struct?
>
> FreeBSD uses an opaque struct, the program has no idea what is in
> there. PowerDNS does some relatively smart things in logger.cc
> which may be worth looking at.

Well, you use the return value as key for a map. It's ok if 
pthread_self() returns a pointer, but I'm unsure in case of a 
complete struct.

Nevertheless, if it is a pointer my code does some pointer arithmetic 
(sad but true). Seems like I have to wait until someone tests it on 
FreeBSD.


Norbert

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj/gzfEACgkQxMLs5v5/7eBUfgCeMewC9ZsSnZrW//dlK9/dr+nA
OdAAmwbwK1PEmkms+rzRj8VisUmG+KNy
=lLYm
-----END PGP SIGNATURE-----



More information about the Pdns-dev mailing list