httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrej van der Zee <>
Subject Re: custom background thread and module sharing a data structure
Date Fri, 13 Mar 2009 07:18:18 GMT
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, and then inside that lock it obtains a thread level lock.

In my specific case, do I really need thread-level locking in addition to
process-level locking? Since I am running a background thread that is
started in post_config(), worker-threads in the mpm worker model are running
in a different process then my background thread anyway. So I guess
process-level locking should suffice, or am I overlooking something?

Thank you,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message