public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Franck MAMALET FT-R&D DIH/OCF <franck.mamalet@rd.francetelecom.fr>
To: Jonathan Larmour <jlarmour@redhat.com>
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] How to use cyg_io_select
Date: Tue, 19 Jun 2001 01:28:00 -0000	[thread overview]
Message-ID: <3B2F0C28.D4985E32@rd.francetelecom.fr> (raw)
In-Reply-To: <3B2E3F87.C6B6420C@redhat.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]

 
I'm not entirely clear on your problem but anyway.
  But since you say you want a non-blocking
read, I don't know quite why
  there would be anything that needed waking up!

Sory it wasn't clear, hope this will be better:
     I want a blocking read when no data is available,
and a non-blocking read as regards to the number of byte to read (I want
to be woken up when I can read 1 or more byte, and I don't want to call
read once and get all bytes available).
For the thread to wake
up, it must have been blocked waiting in select(). That means having
opened
and used the serial devices using open/read/write, and not cyg_io.
cyg_io_select() is the select file operation, it isn't actually an
equivalent of select().
Does this mean I need Posix Package to be able to wake-up my thread (the
file package/io/fileio/current/test/select.c begins with "POSIX package
needed to run test")?
Thanks,
Franck.
 
-- 
& france telecom 
Mamalet Franck
FTR&D DIH/OCF
Tél  : 04 76 76 45 71   Fax : 04 76 90 34 43
franck.mamalet@rd.francetelecom.fr
 

  reply	other threads:[~2001-06-19  1:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-11  8:10 [ECOS] problem with termios: tcgetattr Franck MAMALET FT-R&D DIH/OCF
2001-06-11 13:05 ` Jonathan Larmour
2001-06-13  2:57   ` Franck MAMALET FT-R&D DIH/OCF
2001-06-13  5:31     ` Jonathan Larmour
2001-06-18  7:23   ` [ECOS] How to use cyg_io_select Franck MAMALET FT-R&D DIH/OCF
2001-06-18 10:51     ` Jonathan Larmour
2001-06-19  1:28       ` Franck MAMALET FT-R&D DIH/OCF [this message]
2001-06-19  3:38         ` Jonathan Larmour

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=3B2F0C28.D4985E32@rd.francetelecom.fr \
    --to=franck.mamalet@rd.francetelecom.fr \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=jlarmour@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).