This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
About Cyg_Scheduler::unlock_inner
- To: ecos <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] About Cyg_Scheduler::unlock_inner
- From: Rafael Rodríguez Velilla <rrv at tid dot es>
- Date: Tue, 22 May 2001 21:31:05 +0200
- Organization: Telefónica I+D
I'm working with eCos 1.3.1 and I have a question about
Cyg_Scheduler::unlock_inner.
This method is only called when calling Cyg_Scheduler::unlock with
sched_lock=1; (so it should become 0)
I have seen in the code that it first calls any pending DSR (if there
is any) and then it checks if there's a new thread that reclaims the
CPU.
Why is the context of the new thread restored before decrementing
sched_lock?
Why is not the new thread run with the scheduler unlocked?
--
Rafael Rodríguez Velilla rrv@tid.es
Telefónica I+D http://www.tid.es
Telf: +34 - 91 337 4270