[Pdns-dev] thread id in backend?

Norbert Sendetzky norbert at linuxnetworks.de
Wed Dec 17 22:18:09 CET 2003


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

On Wednesday 17 December 2003 22:15, bert hubert wrote:
> On Wed, Dec 17, 2003 at 09:52:59PM +0100, Norbert Sendetzky wrote:
> > On Tuesday 16 December 2003 18:24, Norbert Sendetzky wrote:
> > > Is there a way to get the id of the thread, which established
> > > the backend?
> >
> > pthread_self() does the job well.
>
> Except that it returns an opaque 'thing' which may not be
> numerically expressable.

Does any posix thread implementation uses a struct?
Do you have a better idea?


Norbert

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

iEYEARECAAYFAj/gyBEACgkQxMLs5v5/7eDsRwCfZ0dprQRDgpCRWbQlEggnNPxA
34kAnRuAziPVXHhGN4QBU/P/S6mCz7oY
=2Reo
-----END PGP SIGNATURE-----



More information about the Pdns-dev mailing list