public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grant.b.edwards@gmail.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Re: timed wait for cyg_io_read
Date: Sun, 29 May 2016 17:20:00 -0000	[thread overview]
Message-ID: <nif8cd$g3n$1@ger.gmane.org> (raw)
In-Reply-To: <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02C5069C@exchange>

On 2016-05-27, Michael W. Ellis <mellis@pesa.com> 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...

-- 
Grant




-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

  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:
  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='nif8cd$g3n$1@ger.gmane.org' \
    --to=grant.b.edwards@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.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 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).