Reputation: 4397
I'm trying to put up a simple but portable way to use shared memory. Boost::interprocess
seemed like a good place to start, but I ran into some problems/concerns.
create_only
and catch an exception, but that's bad design, I don't want stack unwinding in the "good" path.shared_memory_object
isn't actually shared memory per se, but rather a memory-mapped file. Did I understand that correctly? This means I'll have to use specialized code on windows, which I was trying to avoid. Makes me question Boost's fitness for my purpose, is there an alternative? Instead of fighting with boost, I might as well write platform-specific code myself - in your opinion, would that be worth the effort?Upvotes: 3
Views: 921
Reputation: 36441
Upvotes: 1