This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: cyg_scheduler_lock
- To: ecos <ecos-discuss at sourceware dot cygnus dot com>
- Subject: Re: [ECOS] cyg_scheduler_lock
- From: Rafael Rodríguez Velilla <rrv at tid dot es>
- Date: Wed, 23 May 2001 19:29:11 +0200
- Organization: Telefónica I+D
- References: <3B0BD36B.7F6BE5A@tid.es> <3B0BF3D2.EA5B0159@redhat.com>
> > If I lock the scheduler during the thread then no DSR can occur, no
> > other thread can gain the CPU.
> > Is it safe to use cyg_scheduler_lock or unlock inside a DSR?
>
> Yes they are safe in a DSR as long as they are balanced (you only lock as
> many as you unlock).
But it must be balanced in each DSR, isn't it? And this makes it completely
unuseful to use this inside DSRs.