httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: Threads
Date Tue, 28 Jul 2009 11:04:32 GMT
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

Mime
View raw message