Mercurial > ecos
comparison packages/compat/uitron/current/include/uit_func.inl @ 134:d2f49caf9e38 ecos-sw-2000-11-03
Merge from eCos master repository on 2000-11-03-09:00:49-GMT
| author | jlarmour |
|---|---|
| date | Fri, 03 Nov 2000 21:17:40 +0000 |
| parents | 6ed91473a1cd |
| children | e0c0827131d1 |
comparison
equal
deleted
inserted
replaced
| 133:98d71f4d8243 | 134:d2f49caf9e38 |
|---|---|
| 461 ret = E_OBJ; | 461 ret = E_OBJ; |
| 462 else { | 462 else { |
| 463 p->force_resume(); // let it run | 463 p->force_resume(); // let it run |
| 464 p->kill(); // and set prio high so it runs RIGHT NOW!! | 464 p->kill(); // and set prio high so it runs RIGHT NOW!! |
| 465 #ifdef CYGIMP_THREAD_PRIORITY | 465 #ifdef CYGIMP_THREAD_PRIORITY |
| 466 #if CYG_SCHED_UNIQUE_PRIORITIES != 0 | 466 #if CYGINT_KERNEL_SCHEDULER_UNIQUE_PRIORITIES != 0 |
| 467 // see if we are already at prio 0: | 467 // see if we are already at prio 0: |
| 468 if ( 0 == cyg_uitron_dis_dsp_old_priority ) | 468 if ( 0 == cyg_uitron_dis_dsp_old_priority ) |
| 469 // then dispatch is enabled, we are not at prio 0 | 469 // then dispatch is enabled, we are not at prio 0 |
| 470 #endif | 470 #endif |
| 471 p->set_priority( (cyg_priority) 0 ); | 471 p->set_priority( (cyg_priority) 0 ); |
| 473 // uITRON compatible scheduler - so just hope for the best. | 473 // uITRON compatible scheduler - so just hope for the best. |
| 474 #endif | 474 #endif |
| 475 } | 475 } |
| 476 Cyg_Scheduler::unlock(); | 476 Cyg_Scheduler::unlock(); |
| 477 #ifdef CYGIMP_THREAD_PRIORITY | 477 #ifdef CYGIMP_THREAD_PRIORITY |
| 478 #if CYG_SCHED_UNIQUE_PRIORITIES == 0 | 478 #if CYGINT_KERNEL_SCHEDULER_UNIQUE_PRIORITIES == 0 |
| 479 if ( (E_OK == ret) && (0 != cyg_uitron_dis_dsp_old_priority) ) { | 479 if ( (E_OK == ret) && (0 != cyg_uitron_dis_dsp_old_priority) ) { |
| 480 // then dispatching is disabled, so our prio is 0 too | 480 // then dispatching is disabled, so our prio is 0 too |
| 481 Cyg_Thread::yield(); // so let the dying thread run; | 481 Cyg_Thread::yield(); // so let the dying thread run; |
| 482 Cyg_Thread::yield(); // no cost here of making sure. | 482 Cyg_Thread::yield(); // no cost here of making sure. |
| 483 } | 483 } |
