apr shared memory handling

2011-11-14 Thread michaelr
Hi all, first excuse my bad english. As a beginner in apache module development i have a problem understanding the apr shared memeory handling. In the following example i removed all the locks and error handling to bring my problem in front. Even the malloc and free calls are only for testing

Re: apr shared memory handling

2011-11-14 Thread rm
On Mon, Nov 14, 2011 at 02:18:20PM +0100, michaelr wrote: Hi all, first excuse my bad english. As a beginner in apache module development i have a problem understanding the apr shared memeory handling. In the following example i removed all the locks and error handling to bring my problem

Re: apr shared memory handling

2011-11-14 Thread michaelr
Hi Ralf, thanks for the explaination. As i see - i can't use a simple pointer and after reading your answer it's clear why! So it's not that easy to store dynamic content (like arrays) into a shared memory segment. Actually i have looked at the ldap-caching functions from mod_ldap. They do