public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS]  Question about cyg_flag_timed_wait()
@ 2009-11-02 17:00 Grant Edwards
  2009-12-23 16:01 ` [ECOS] " Grant Edwards
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2009-11-02 17:00 UTC (permalink / raw)
  To: ecos-discuss

A colleague working on an eCos app is reporting that
cyg_flag_timed_wait() doesn't resume immediately when the flag
is set.  He says it won't resume until the next system tick
(which results in a delay of up to 10ms). So instead he uses
cyg_thread_delay() and cyg_thread_release() and claims that the
released thread starts immediately in that case.

I find it hard to believe that when an event flag is set,
waiting threads aren't resumed until the next timer tick, but I
haven't sifted through the kernel sources enough to say for
sure.

Can anybody who's more familiar with event flag implementation
comment?

-- 
Grant Edwards                   grante             Yow! With YOU, I can be
                                  at               MYSELF ...  We don't NEED
                               visi.com            Dan Rather ...


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-03 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-02 17:00 [ECOS] Question about cyg_flag_timed_wait() Grant Edwards
2009-12-23 16:01 ` [ECOS] " Grant Edwards
2010-01-02 20:14   ` Bart Veer
2010-01-03 15:41     ` Grant Edwards

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