This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Problem with cyg_thread_set_priority()
- From: Bart Veer <bartv at ecoscentric dot com>
- To: Mounire dot El dot houmaidi at siemens dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 1 Nov 2004 22:50:22 +0000 (GMT)
- Subject: Re: [ECOS] Problem with cyg_thread_set_priority()
- References: <EA78B62757AF1E4799828249310AC4CA0658322F@stca206a.bus.sc.rolm.com>
>>>>> " " == 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