Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2003 02:47:49 -0400 (EDT)
From:      Daniel Eischen <eischen@pcnet.com>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: Question about OpenSSL id_function() and pthreads
Message-ID:  <Pine.GSO.4.10.10305290247040.20477-100000@pcnet5.pcnet.com>
In-Reply-To: <3ED59E04.B237F8AD@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10305290247040.20477-100000>