public inbox for
 help / color / mirror / Atom feed
From: Grant Edwards <>
Subject: [ECOS] Re: timed wait for cyg_io_read
Date: Sun, 29 May 2016 17:20:00 -0000	[thread overview]
Message-ID: <nif8cd$g3n$> (raw)
In-Reply-To: <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02C5069C@exchange>

On 2016-05-27, Michael W. Ellis <> wrote:

> Is there a way to do a timed wait for cyg_io_read?

FAIK, there never used to be any "built-in" way to do that.  I ended
up adding timeout settings to my io drivers.

> I have a thread that is blocking on cyg_io_read and I wish to signal
> the thread to exit in an orderly manner (using an event flag).  I
> know that I can make cyg_io_read non-blocking and poll cyg_io_read
> and cyg_flag_poll but this would burn a lot of cycles doing nothing.

I think there used to be a way to explicity wakeup a thread that was
blocked on something, but I don't remember the details...


Before posting, please read the FAQ:
and search the list archive:

  reply	other threads:[~2016-05-29 17:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-27 20:59 [ECOS] " Michael W. Ellis
2016-05-29 17:20 ` Grant Edwards [this message]
2016-05-31  9:19 ` Nick Garnett

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:

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

  git send-email \
    --in-reply-to='nif8cd$g3n$' \ \ \

* 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).