c++ - Message passing between two programs -
c++ - Message passing between two programs -
currently have 2 standalone c++ programs, master , slave. master writes info shared memory, using boost::interprocess
, , launches slave, able read memory.
what have slave running, , master send message slave when memory has been written , ready read from.
the way can think accomplish same thing slave check shared memory presence of object, , when detected read , delete it. however, doesn't seem optimal.
is there nicer way of achieving same thing?
background: continuation of previous question here...
you can utilize posix message queues, or improve yet boost message queues.
c++ shared-memory message-passing boost-interprocess
Comments
Post a Comment