public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re: scheduler started?
@ 2011-08-12 13:35 Stanislav Meduna
  0 siblings, 0 replies; only message in thread
From: Stanislav Meduna @ 2011-08-12 13:35 UTC (permalink / raw)
  To: ecos-discuss

On 12.08.2011 09:03, Slide wrote:

> Back in 2009, this [1] message told one way to know if the scheduler
> was already started. Is this still the recommended method for doing
> so?
>
> [1] - http://sourceware.org/ml/ecos-discuss/2009-06/msg00105.html

I'd like to ask the same question. I have an I2C RTC chip that
has to be accessed in the wallclock constructor. Contrary
to the SPI the I2C does not allow to force the polled mode
in the transfer function calls (by design choice - see
http://www.cygwin.com/ml/ecos-patches/2006-10/msg00015.html -
that I find quite unfortunate).

Before resorting to ugly hacks or patching the scheduler itself
to set some flag, is

  cyg_thread_self() == cyg_thread_idle_thread()

still safe and recommended for this purpose?

Thanks
-- 
                                   Stano


-- 
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] only message in thread

only message in thread, other threads:[~2011-08-12 13:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-12 13:35 [ECOS] Re: scheduler started? Stanislav Meduna

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