views:

12

answers:

0

hi,

I am using boost interprocess library for my application. I have a requirement such that i need to create an array of container handles in the starting bytes of shared memory. The array index is the object_type and the array slot will hold the container handle for the corresponding object type. On reading the boost interprocess reference i found out that the initial bytes of the shared memory are used to place the segment manager object.

Is there any way i can place the above array just after the segment manager and advise the memory allocator not to allocate the memory occupied by this array for allocation requests.

+------------------------+--------+-------------------------------------------+

| segment manager | array | shared memory for allocation reqs |

+------------------------+--------+-------------------------------------------+

regards,

naidu.trk