Boost logo

Boost Users :

Subject: [Boost-users] was it created or opened when using boost::interprocess::shared_memory_object?
From: Gehua Yang (yanggehua_at_[hidden])
Date: 2012-01-26 12:06:23

Dear folks,

I have been using Boost's Interprocess module for communication
between several peer processes.  In particular, I am using the
shared_memory_object.  As I was trying to create it with
open_or_create_t flag (to ensure it finishes in an atomic operation),
I cannot tell whether it was created or it was just opened.  I would
like to apply initialization when it was created but use its current
information when it was opened.

I hope there is a member function that can return this status.

Best regards,
Gehua Yang

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at