This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]