This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Problem with cyg_thread_set_priority()
- From: "El Houmaidi, Mounire" <Mounire dot El dot houmaidi at siemens dot com>
- To: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 29 Oct 2004 16:06:27 -0700
- Subject: [ECOS] Problem with cyg_thread_set_priority()
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!
In fact we hit the code in thread.cxx at Cyg_Thread::set_priority
// If running, remove from run qs
- 883 if( state == RUNNING )
- 884 Cyg_Scheduler::scheduler.rem_thread(this);
And then in mlqueue.cxx at Cyg_Scheduler_Implementation::rem_thread
280
- 281 CYG_ASSERT( pri != CYG_THREAD_MIN_PRIORITY, "Idle thread
trying to sleep!");
- 282 CYG_ASSERT( !run_queue[CYG_THREAD_MIN_PRIORITY].empty(),
"Idle thread vanished!!!");
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss