Re: apr_global_mutex_create vs apr_proc_mutex_create

2016-03-28 Thread Ali Shah
Thanks Luca and William, Thats very informative!

Re: apr_global_mutex_create vs apr_proc_mutex_create

2016-03-24 Thread William A Rowe Jr
proc_mutex can only be used to block on a cross process event. It can be used in a threaded server, but cannot be held in multiple threads, you might use it to block in a single thread queue per-process. Thread_mutex will not block between processes, this is used for the mutex-per-process logic

Re: apr_global_mutex_create vs apr_proc_mutex_create

2016-03-24 Thread William A Rowe Jr
proc_mutex can only be used to block on a cross process event. It can be used in a threaded server, but cannot be held in multiple threads, you might use it to block in a single thread queue per-process. Thread_mutex will not block between processes, this is used for the mutex-per-process logic

Re: apr_global_mutex_create vs apr_proc_mutex_create

2016-03-24 Thread Luca Toscano
+httpd-dev@ Hello! 2016-03-23 21:49 GMT+01:00 Ali Shah : > Hi Module maintainers, > > I'm writing a simple apache module and I'd like to aggregate some > statistics. > I saw an example module that does this ( > https://wiki.apache.org/httpd/ModuleLife) using shared memory. >

apr_global_mutex_create vs apr_proc_mutex_create

2016-03-23 Thread Ali Shah
Hi Module maintainers, I'm writing a simple apache module and I'd like to aggregate some statistics. I saw an example module that does this ( https://wiki.apache.org/httpd/ModuleLife) using shared memory. My question for those on this list following: What is the main difference between using