All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] multiple tasks calling rt_pipe_write() on same pipe
@ 2007-12-10 17:27 Theo Veenker
  2007-12-10 17:45 ` Philippe Gerum
  0 siblings, 1 reply; 3+ messages in thread
From: Theo Veenker @ 2007-12-10 17:27 UTC (permalink / raw)
  To: Xenomai

Hi,

I have multiple tasks all calling rt_pipe_write() to send some data
through the same pipe. Is my assumption that rt_pipe_write() won't be
interupted when a higher priority thread becomes ready correct?

Theo



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] multiple tasks calling rt_pipe_write() on same pipe
  2007-12-10 17:27 [Xenomai-help] multiple tasks calling rt_pipe_write() on same pipe Theo Veenker
@ 2007-12-10 17:45 ` Philippe Gerum
  2007-12-10 17:51   ` Theo Veenker
  0 siblings, 1 reply; 3+ messages in thread
From: Philippe Gerum @ 2007-12-10 17:45 UTC (permalink / raw)
  To: Theo Veenker; +Cc: Xenomai

Theo Veenker wrote:
> Hi,
> 
> I have multiple tasks all calling rt_pipe_write() to send some data
> through the same pipe. Is my assumption that rt_pipe_write() won't be
> interupted when a higher priority thread becomes ready correct?
>

Messages are always atomically queued on the write side, so the contents
of two distinct messages won't be mixed. Of course, the priority may
still affect the queuing order of both messages, though. Does this
answer your question?

-- 
Philippe.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] multiple tasks calling rt_pipe_write() on same pipe
  2007-12-10 17:45 ` Philippe Gerum
@ 2007-12-10 17:51   ` Theo Veenker
  0 siblings, 0 replies; 3+ messages in thread
From: Theo Veenker @ 2007-12-10 17:51 UTC (permalink / raw)
  To: rpm; +Cc: Xenomai

Philippe Gerum wrote:
> Theo Veenker wrote:
>> Hi,
>>
>> I have multiple tasks all calling rt_pipe_write() to send some data
>> through the same pipe. Is my assumption that rt_pipe_write() won't be
>> interupted when a higher priority thread becomes ready correct?
>>
> 
> Messages are always atomically queued on the write side, so the contents
> of two distinct messages won't be mixed. Of course, the priority may
> still affect the queuing order of both messages, though. Does this
> answer your question?
> 

Perfectly! Thanks.

Theo



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-10 17:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-10 17:27 [Xenomai-help] multiple tasks calling rt_pipe_write() on same pipe Theo Veenker
2007-12-10 17:45 ` Philippe Gerum
2007-12-10 17:51   ` Theo Veenker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.