apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: Getting a hash table into shared memory
Date Fri, 11 Jul 2003 19:00:05 GMT
At 11:01 AM 7/11/2003, Gregory (Grisha) Trubetskoy wrote:

>Just to clarify, there are two possible ways to use shared memory. 
>The second is when a (child) process would be able to allocate a shared
>memory segment and others could attach to it.  This, of course is a lot
>more complicated, because now the base address may differ from process to
>process and the table needs to deal with offsets.  Both examples mentioned
>above do it the first way, and for my pusposes it would be acceptable,
>though the second would be fantastic...

Notice the apr_rmm API, it was designed entirely for this purpose, where
memory is described in size and relative position, not in absolute addresses.

It won't address your entire hashtable requirements, but it is a start to your
memory addressing issues.


View raw message