From owner-freebsd-threads@FreeBSD.ORG Wed May 28 22:44:44 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2DF337B401 for ; Wed, 28 May 2003 22:44:44 -0700 (PDT) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56D4543F3F for ; Wed, 28 May 2003 22:44:44 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-38lc0vo.dialup.mindspring.com ([209.86.3.248] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19LGDT-00066V-00; Wed, 28 May 2003 22:44:43 -0700 Message-ID: <3ED59E04.B237F8AD@mindspring.com> Date: Wed, 28 May 2003 22:43:32 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Craig Rodrigues References: <20030529003416.GA3712@attbi.com> <20030529011047.GA4182@attbi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4f159af4a743a8007c6fdd68738d3e129a7ce0e8f8d31aa3f350badd9bab72f9c350badd9bab72f9c cc: freebsd-threads@freebsd.org Subject: Re: Question about OpenSSL id_function() and pthreads X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2003 05:44:45 -0000 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