You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Alex Wulms <al...@scarlet.be> on 2010/08/05 11:05:02 UTC
Re: Question about APR SHM
Op 31-07-10 18:07, Alex Wulms schreef:
> Hi,
>
> I have got a question about APR SHM. The comments of the function
> apr_shm_baseaddr_get(const apr_shm_t *m) indicate that the resulting
> address is only valid in the callers address space, since the API does
> not guarantee that other attaching processes will maintain the same
> address mapping.
> ...
>
Hi,
In order to play it safe, I have made my code function completely on top
of the RMM (relocatable memory management) API already present in APR.
As a side-product, I have written a re-usable RMM hash table (derived
from apr_hash.c). You can find the code in the GIT repository located here:
http://repo.or.cz/w/httpd-crcsyncproxy.git
It concerns files crccache/rmm_hash.h and crccache/rmm_hash.c in the
repository.
Please feel free to include them in a future version of APR.
Kind regards,
Alex