public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grante@visi.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] How to know if scheduler has started?
Date: Wed, 17 Sep 2003 14:49:00 -0000	[thread overview]
Message-ID: <20030917094809.A20187@visi.com> (raw)


How does driver or application code know if the scheduler has
been started?

I've been asked that by several customers who need to be able
to write functions that can be called from either the
cyg_user_start() context or from a thread contex, and I've
never been able to come up with an answer.

It looks like (Scheduler::current_thread != NULL) may be one
way in older versions of eCos -- but I can't find the
equivalent in 2.0 code.  Anyway, I was hoping there'd be
something kapi.h that could be called.

Can cyg_thread_self() be used to determine if the scheduler has
been started?  I've been looking at the eCos sources, but
haven't been able to figure out how cyg_thread_self() works,
since I can't find the implimentation of the self() method for
Cyg_Thread.  Where is it?

-- 
Grant Edwards
grante@visi.com

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

             reply	other threads:[~2003-09-17 14:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-17 14:49 Grant Edwards [this message]
2013-10-31 16:25 Grant Edwards
2013-11-01 17:04 ` 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=20030917094809.A20187@visi.com \
    --to=grante@visi.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).