httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Galbavy <>
Subject Re: Which thread/process
Date Thu, 12 Aug 1999 15:44:12 GMT
On Thu, Aug 12, 1999 at 11:23:55AM -0400, Ryan Bloom wrote:
> Sorry, I should have mention this.  I would rather not use pthread_self if
> I can help it.  Because going that route means I have to call both
> getpid() and pthread_self() EVERY time a cgi is requested.  This can get 
> expensive quickly.

Only having the most cursory (sp!) experience with pthreads, there
must be some way to store a per-thread data structure, use
pthread_self() once to get an offset of sorts into it and store a
pointer to it on the per-thread stack. Then use this. My reasoning
sounds recursive.
> Sorry, but I don't know what TSD is.

Dunno either.

Peter Galbavy
Knowledge Matters Ltd

View raw message