
8 Feb
2006
8 Feb
'06
5:52 p.m.
"Jeff Flinn" wrote:
void* p = segment_allocate(1024, shmem::manual_lifetime);
Did you mean for the above to be a free function? No its typo. "." was intended. I am very bad in typing.
And there could be debug mode flag that checks the data is deallocated in the same modeit was allocated.
By 'mode' do you mean whether the shared_ptr, or raw pointer was returned?
I mean the allocator would set a flag somewhere in shared memory and deallocator would check it and assert() if needed. I plan to write more about in in review if I find time. ------ In case I won't find time for review take my default position as "accept into Boost". I have been following shmem development for quite long and the issues I had with it got resolved to better. /Pavel