Question about OpenSSL id_function() and pthreads

Daniel Eischen eischen at pcnet.com
Wed May 28 23:47:51 PDT 2003


On Wed, 28 May 2003, Terry Lambert wrote:

> 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.

Yeah, what he (Terry) said.

-- 
Dan Eischen



More information about the freebsd-threads mailing list