86static inline bool do_send( message_queue* mq,
const std::string& buf,
bool block )
92 mq->send( buf.data(), buf.size(), 0 );
94 send_ok = mq->try_send( buf.data(), buf.size(), 0 );
95 }
catch ( interprocess_exception& e ) {
112static inline std::string
do_receive( message_queue* mq,
bool block )
117 std::size_t recvd_size = 0;
118 unsigned int priority = 0;
124 result = mq->try_receive( buf,
MAX_MSG_SIZE, recvd_size, priority );
131 return std::string( buf, recvd_size );
133 }
catch ( interprocess_exception& e ) {