[ECOS] Detect if scheduler locked?

Grant Edwards grante@visi.com
Tue Oct 22 09:03:00 GMT 2002


On Tue, Oct 22, 2002 at 05:45:36PM +0200, Andrew Lunn wrote:

> > Now I've got a customer who is calling this routine with the
> > scheduler locked (in order to prevent other tasks from
> > attempting to read the flash while it's busy, I presume).
> 
> Semaphores/mutexs sound like the correct answer, with multiple
> read lockers but one write locker. Classical stuff you learn in
> university when doing a CS degree.

Yup.  I suggested that.  I even pointed out example source code
for a read/write lock in the Butenhof pthreads book.

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



More information about the Ecos-discuss mailing list