All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Bultel <thierry.bultel@basystemes.fr>
To: xenomai@xenomai.org
Cc: Céline <celine.leberre.prestataire@basystemes.fr>
Subject: [Xenomai] Are concurrent writes to XDDP sockets allowed ?
Date: Thu, 21 May 2015 08:34:27 +0200	[thread overview]
Message-ID: <555D7C73.8030905@basystemes.fr> (raw)
In-Reply-To: <555D77F6.7030007@basystemes.fr>

Hi,
In an application, we have one regular thread listening on an RTP device,
and 2 realtime threads that concurrently write data in the XDDP socket 
backend.
We use the POSIX skin.

Sometimes, the regular thread gets its blocking read() call just return 0.
That never happens with the classic "one reader, one writer" case.

Also, we notice that the 'return 0' case occurrence is not the same, 
depending
on the fact that the realtime task uses 'write' instead of 'sendto' 
(more occurrences with 'sendto')

Regards,
Thierry


       reply	other threads:[~2015-05-21  6:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <555D77F6.7030007@basystemes.fr>
2015-05-21  6:34 ` Thierry Bultel [this message]
2015-05-21 12:07   ` [Xenomai] Are concurrent writes to XDDP sockets allowed ? Philippe Gerum
2015-05-21 15:03     ` Thierry Bultel
2015-05-21 15:23       ` Philippe Gerum
2015-05-21 15:32         ` Thierry Bultel
2015-05-22  7:42           ` Philippe Gerum
2015-05-22 10:26             ` Thierry Bultel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=555D7C73.8030905@basystemes.fr \
    --to=thierry.bultel@basystemes.fr \
    --cc=celine.leberre.prestataire@basystemes.fr \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.