public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grant.b.edwards@gmail.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Re: Select break?
Date: Thu, 11 Oct 2012 13:14:00 -0000	[thread overview]
Message-ID: <k56gnh$3um$1@ger.gmane.org> (raw)
In-Reply-To: <CANdC7UEPLnJkji3CocX+V5H8h1pv-+w1CB14fiTr6Ft0iCB-Jw@mail.gmail.com>

On 2012-10-11, Allan Nielsen <a@awn.dk> wrote:

> Is there any way I can wakeup a select call from an other thread?

You used to be able to call cyg_select_abort(), which would wake up
any thread that was blocking in cyg_select_with_abort() -- which had
the same semantics as select() except it could be aborted.  It was a
great feature that I found exactly fit my needs.  But, that feature
disappeared.

Now the only practical solution I've found is to always use a timeout
when you call select() and just poll the abort condition.  No, it's
not very elegent, it wastes CPU, and in introduces a lot of latency.

-- 
Grant Edwards               grant.b.edwards        Yow! Give them RADAR-GUIDED
                                  at               SKEE-BALL LANES and
                              gmail.com            VELVEETA BURRITOS!!


-- 
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:[~2012-10-11 13:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-11  8:51 [ECOS] " Allan Nielsen
2012-10-11 13:14 ` Grant Edwards [this message]
2012-10-11 15:24 ` Jay Foster

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='k56gnh$3um$1@ger.gmane.org' \
    --to=grant.b.edwards@gmail.com \
    --cc=ecos-discuss@sources.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).