[Interprocess] Custom naming for the managed_external_buffer
Hello,
I'm using a mapped file in order to share my objects between many processes
and I already have my own kind of key to identify them. So instead of
linking them to a
Hi! I'm outputting the progress from an externally executed command line application using the windows API call OutputDebugString. This means that I need to convert all line breaking characters to flush commands to make sure the text is outputted when a new line is received rather than when some underlying structure finds it suitable to linebreak. I've created a sink that writes to OutputDebugString and it works great, however unless I manually insert lots of std::endl (or flushing some other way) I won't get any output until the buffer is full.
Is it possible to write an iostream filter that forces a flush on newlines or is this something I need to handle before feeding data into my stream?
/David
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Thomas d'Erceville wrote:
Hello,
I'm using a mapped file in order to share my objects between many processes and I already have my own kind of key to identify them. So instead of linking them to a
in the function construct(), I would like to use my own type (providing convenient functions such as less(), operator==, ...) So I mean, instead of : MyObject * my_object = mapped_file.construct<MyObject>("object_name"); I want to known if there is a way to write something like : MyKey *object_key*(...) MyObject * my_object = mapped_file.construct<MyObject>(*object_key*);
I'm taking a look at the section "Building custom indexes http://www.boost.org/doc/libs/1_39_0/doc/html/interprocess/customizing_inter..." but I am not sure to be able to solve my problem with that.
Could someone confirm?
No, you can't. Interprocess only supports name-based keys. Best, Ion
participants (2)
-
Ion Gaztañaga
-
Thomas d'Erceville