comparison packages/kernel/current/src/sched/mlqueue.cxx @ 46:797268ecc331 ecos-sw-1999-10-19

Merge from eCos master repository on 1999-10-19-18:55:31-BST
author jlarmour
date Tue, 19 Oct 1999 19:19:52 +0000
parents 443894e2e912
children c38311975d4f
comparison
equal deleted inserted replaced
45:91d213c0da48 46:797268ecc331
134 CYG_REPORT_FUNCARG1("thread=%08x", thread); 134 CYG_REPORT_FUNCARG1("thread=%08x", thread);
135 135
136 cyg_priority pri = thread->priority; 136 cyg_priority pri = thread->priority;
137 Cyg_ThreadQueue_Implementation *queue = &run_queue[pri]; 137 Cyg_ThreadQueue_Implementation *queue = &run_queue[pri];
138 138
139 CYG_ASSERT((CYG_THREAD_MIN_PRIORITY >= pri)
140 && (CYG_THREAD_MAX_PRIORITY <= pri),
141 "Priority out of range!");
142
139 // If the thread is on some other queue, remove it 143 // If the thread is on some other queue, remove it
140 // here. 144 // here.
141 if( thread->queue != NULL ) 145 if( thread->queue != NULL )
142 { 146 {
143 thread->queue->remove(thread); 147 thread->queue->remove(thread);