Skip to contentSkip to conversation

Message queue flush

Xenomai-help Christoph Permes 2 participants 3 messages Sep 1, 2009 – Sep 11, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

In my application I need to flush a queue if rt_queue_write returns -ENOMEM to prevent the consumer process from reading old data.

Is there any function in the native api that flushes a message queue, like rt_pipe_flush for pipes?

Thanks,
Christoph

#1 lore raw
Quoted 7 lines · Christoph Permes

Hi,

In my application I need to flush a queue if rt_queue_write returns -ENOMEM to prevent the consumer process from reading old data.

Is there any function in the native api that flushes a message queue, like rt_pipe_flush for pipes?

Nope.

Quoted 10 lines

Thanks,
Christoph

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#2 lore raw
In reply to Christoph Permes
Quoted 7 lines · Christoph Permes

Hi,

In my application I need to flush a queue if rt_queue_write returns -ENOMEM to prevent the consumer process from reading old data.

Is there any function in the native api that flushes a message queue, like rt_pipe_flush for pipes?

http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=ea4ad49cbf13ba3870351a9d3e301041af4c0279

Quoted 10 lines

Thanks,
Christoph

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.