public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] About Cyg_Scheduler::unlock_inner
@ 2001-05-22 12:55 Rafael Rodríguez Velilla
  2001-05-22 13:50 ` Jonathan Larmour
  0 siblings, 1 reply; 5+ messages in thread
From: Rafael Rodríguez Velilla @ 2001-05-22 12:55 UTC (permalink / raw)
  To: ecos

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

  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



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

end of thread, other threads:[~2001-05-23  4:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-22 12:55 [ECOS] About Cyg_Scheduler::unlock_inner Rafael Rodríguez Velilla
2001-05-22 13:50 ` Jonathan Larmour
2001-05-23  3:41   ` Hugo Tyson
2001-05-23  3:53     ` Rafael Rodríguez Velilla
2001-05-23  4:05       ` Hugo Tyson

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