[ECOS] Problem with cyg_thread_set_priority()

Bart Veer bartv@ecoscentric.com
Mon Nov 1 22:50:00 GMT 2004


>>>>> " " == El Houmaidi, Mounire <Mounire.El.houmaidi@siemens.com> writes:

     > I am trying to set the priority of a thread (not the idle
     > thread) to 9 and I get this assert failure:

     > ASSERT FAIL: <8>mlqueue.cxx[281]
     > void Cyg_Scheduler_Implementation::rem_thread() Idle thread trying to sleep!

What is the current priority of the thread you are trying to change?
If it is the same priority as the idle thread's then that assertion
can trigger incorrectly. Originally there was an assumption that only
the idle thread would run at the lowest priority, and I think the
assertion reflects that assumption.

Bart

-- 
Bart Veer                       eCos Configuration Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts

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



More information about the Ecos-discuss mailing list