Repost - Mqueue Question

Sorry, I posted in comp.os.qnx by mistake. Hope someone here has some
insight :slight_smile:

Can different applications have the same queue open in different modes?
i.e. some blocking and some non-blocking. Or is the blocking/non-blocking
attribute set on the queue thereby effecting all users?

Lawrence R. Sweet wrote:

Can different applications have the same queue open in different modes?
i.e. some blocking and some non-blocking. Or is the blocking/non-blocking
attribute set on the queue thereby effecting all users?

Yes, the first one. The block/non-block is set per mqd_t. So can provide
O_NONBLOCK (or not) to the mq_open(), or set/clear it dynamically using
mq_setattr() (with O_NONBLOCK or not in mq_flags field).