httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: Which thread/process
Date Thu, 12 Aug 1999 15:27:01 GMT

In article <Pine.LNX.4.04.9908121039500.5515-100000@chosondo.raleigh.ibm.com> you wrote:
 
> Okay, we took out the only place in the 2.0 tree where we designated a
> unique number for each thread within each process.  Namely, the
> thread_num/child_num pair in the conn_rec.  So how am I now supposed to
> get a deterministic value for the exact thread I am running in?

Pthreads has a pthread_self() function which you perhaps want to use.  Or you
can use TSD and save there a unique number at thread creation time.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message