On Sun, Feb 28, 2021 at 5:16 PM Eric Gao <eric.tech@xxxxxxxxxxx> wrote: > > > Is there something that mq_timedsend/mq_timedreceive cannot do that > > you need? Would it be possible to add that feature to the posix message > > queues instead? > > the system v message queue have a mtype parameter both in msgsnd and msgrcv which can be > used to implement message routing(mtype as the target id. For example, I filling the target thread > id that waiting message). It's the most important. > > but mq_timedsend/mq_timedreceive in posix message queue don't have this feature. I'm not sure I'm following here. With posix message queues, can't you just open one queue per target thread? That would seem simpler and more efficient besides also allowing the timeout. Arnd