Question about OpenSSL id_function() and pthreads

Terry Lambert tlambert2 at mindspring.com
Wed May 28 22:44:45 PDT 2003


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


More information about the freebsd-threads mailing list