Re: thread ID

2012-03-01 Thread Ben Noordhuis
On Thu, Mar 1, 2012 at 17:29, wrote: > Hello, > > I would need a memory buffer associated per worker thread (in the worker > MPM) or to each process (in the prefork MPM). > > In order to do that, I would need a map thread<->buffer. So, I would > need a sort of thread I

Re: thread ID

2012-03-01 Thread Sorin Manolache
ort of thread ID/key/handle that stays the same during the lifetime of the thread and no two threads in the same process can have the same ID/key/handle. What is the most portable way to get this thread ID? I thought of r->connection->id. It works but it is not very portable as it is not guarant

Re: thread ID

2012-03-03 Thread Rainer Jung
thread<->buffer. So, I would need a sort of thread ID/key/handle that stays the same during the lifetime of the thread and no two threads in the same process can have the same ID/key/handle. What is the most portable way to get this thread ID? I thought of r->connection->id. It works but it

Re: thread ID

2012-03-05 Thread Massimo Manghi
). In order to do that, I would need a map thread<->buffer. So, I would need a sort of thread ID/key/handle that stays the same during the lifetime of the thread and no two threads in the same process can have the same ID/key/handle. What is the most portable way to get this thread ID? I thou

Re: thread ID

2012-03-05 Thread Rainer Jung
) or to each process (in the prefork MPM). In order to do that, I would need a map thread<->buffer. So, I would need a sort of thread ID/key/handle that stays the same during the lifetime of the thread and no two threads in the same process can have the same ID/key/handle. What is the most po

Re: thread ID

2012-03-06 Thread Massimo Manghi
thanks -- Massimo On 03/05/2012 08:21 PM, Rainer Jung wrote: On 05.03.2012 11:33, Massimo Manghi wrote: true, the ID is logged now, but is the function handling the thread id public? not the function, but the source. See function log_tid() in server/log.c. Regards, Rainer