Hi Sorin,
Sorin Manolache wrote:
On Wed, Mar 11, 2009 at 02:08, Andrej van der Zee
andrejvander...@gmail.com wrote:
Hi,
I need to modify Apache and run one custom background thread. In addition,
my custom modules have to be able to share a data structure with this
background thread.
Hi Saju,
For the worker mpm, both cross thread and cross process protection will be
needed. apr_proc_mutex.h family supplies cross-process protection,
apr_thread_mutex.h provides cross thread protection.
You locking method would be a wrapper method that first obtains a process
level lock,
Hi,
Thanks for your comments. See below...
Worker mpm is a multithreaded, multiprocess mpm. Multiple child processes
host multiple worker threads that run your module code.
If your module services 2 concurrent requests in 2 different threads in the
same process and both the threads need to
Andrej van der Zee wrote:
Hi,
Thanks for your comments. See below...
Worker mpm is a multithreaded, multiprocess mpm. Multiple child processes
host multiple worker threads that run your module code.
If your module services 2 concurrent requests in 2 different threads in the
same process and
Hi,
My point is that within a single process, multiple threads can service
requests that can end up firing your module code. If you only do process
locking you can still have more than 1 thread executing your module code at
the same time.
Just a process level lock will *not* guarantee
Hi,
Thanks for the info.
For the worker mpm, both cross thread and cross process protection will be
needed. apr_proc_mutex.h family supplies cross-process protection,
apr_thread_mutex.h provides cross thread protection.
You locking method would be a wrapper method that first obtains a
Sorin Manolache wrote:
On Wed, Mar 11, 2009 at 02:08, Andrej van der Zee
andrejvander...@gmail.com wrote:
Hi,
I need to modify Apache and run one custom background thread. In addition,
my custom modules have to be able to share a data structure with this
background thread. Did anybody do this
Hi,
Yes, I did this. I will send you a commented source file sometimes
today or early tomorrow (Central European Time), I don't really have
time now.
Great, I will be waiting for that!
Thanks,
Andrej
Hi,
I need to modify Apache and run one custom background thread. In addition,
my custom modules have to be able to share a data structure with this
background thread. Did anybody do this before? Is there an example I can use
as a starting point?
Thank you,
Andrej
--
Andrej van der Zee