httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ricardo13 <ricardoogra...@gmail.com>
Subject Re: Threads
Date Tue, 28 Jul 2009 11:54:39 GMT

I thought better and I think that first thread will be delete. Because, all
post_request_read() hook, I add request, dont need a thread for it.

Now, second thread's "asynchnous". That means, doesn't need a event "add
request" for scheduling. It's independent.

I didn't undestand about "talk to your thread standalone".
What do I will talk for thread ?

Thank you
Ricardo



Eric Covener wrote:
> 
> On Tue, Jul 28, 2009 at 6:59 AM, ricardo13<ricardoogrande@gmail.com>
> wrote:
>>
>> Hi,
>>
>> I'm using Worker MPM and would like to implement a module that uses 2
>> threads and one array.
>> The first thread works adding requests in array. Just it.
>> And second thread schedules requests in array to processing.
>>
>> I used post_config() hook for initialize structures and creates threads.
>> What hook do I use for threads ?? Because if I initialize in post_config,
>> how thread run after post_request_read and before content generator ??
> 
> You can't have your dedicated thread directly "invoked" during the
> apache hooks.
> 
> You need to write normal methods that will be invoked by the normal
> request-processing threads, and talk to your standalone thread via
> some type of non-Apache-specific IPC.
> 
> -- 
> Eric Covener
> covener@gmail.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Threads-tp24697041p24697873.html
Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.


Mime
View raw message