Hi,

apr_shm_baseaddr_get returns the base address for the shared memory segment. You will have to implement your own "allocator" within the shared memory. Also keep in mind that you can't reliably use pointers inside the shared memory segment, because - as the documentation states - the address returned by apr_shm_baseaddr_get "is only usable within the callers address space, since this API does not guarantee that other attaching processes will maintain the same address mapping." Inter- and intra-process synchronization will be problems you will encounter later on. Btw Apache 2.3 offers mod_slotmem which helps in using shared memory - maybe you should have a look at it?

-- Ignaz

Reply via email to