Mercurial > flash_v2
diff packages/kernel/current/src/sched/bitmap.cxx @ 56:755351606154 ecos-sw-1999-12-01
Merge from eCos master repository on 1999-12-01-18:03:05-GMT
| author | jlarmour |
|---|---|
| date | Wed, 01 Dec 1999 18:33:37 +0000 |
| parents | 797268ecc331 |
| children | c38311975d4f |
line wrap: on
line diff
--- a/packages/kernel/current/src/sched/bitmap.cxx +++ b/packages/kernel/current/src/sched/bitmap.cxx @@ -99,14 +99,14 @@ void Cyg_Scheduler_Implementation::add_t { CYG_REPORT_FUNCTION(); + CYG_ASSERT((CYG_THREAD_MIN_PRIORITY >= thread->priority) + && (CYG_THREAD_MAX_PRIORITY <= thread->priority), + "Priority out of range!"); + CYG_ASSERT( thread_table[thread->priority] == NULL || thread_table[thread->priority] == thread, "Duplicate thread priorities" ); - CYG_ASSERT((CYG_THREAD_MIN_PRIORITY >= pri) - && (CYG_THREAD_MAX_PRIORITY <= pri), - "Priority out of range!"); - CYG_ASSERT( (run_queue & (1<<thread->priority)) == 0, "Run queue bit already set" );
