Date: Wed, 28 May 2003 22:43:32 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Craig Rodrigues <rodrigc@attbi.com> Cc: freebsd-threads@freebsd.org Subject: Re: Question about OpenSSL id_function() and pthreads Message-ID: <3ED59E04.B237F8AD@mindspring.com> References: <20030529003416.GA3712@attbi.com> <20030529011047.GA4182@attbi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Craig Rodrigues wrote: > On Wed, May 28, 2003 at 08:46:26PM -0400, Daniel Eischen wrote: > > > > Make an external function (in C) that converts the pthread_t > > for you and use that to convert it. > > How should I do the conversion? On FreeBSD, > pthread_t is a pointer to struct pthread. Are there > data members in the struct pthread that I can use to > construct a unique numeric identifier? Yeah. Using the C code, you can cast a pointer to a long. -- Terry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ED59E04.B237F8AD>