Mercurial > flash_v2
comparison packages/kernel/current/src/common/thread.cxx @ 124:0ec04793409a ecos-sw-2000-09-11
Merge from eCos master repository on 2000-09-11-03:00:13-BST
| author | jlarmour |
|---|---|
| date | Mon, 11 Sep 2000 02:42:46 +0000 |
| parents | 6ed91473a1cd |
| children | 0ae0bc38e387 |
comparison
equal
deleted
inserted
replaced
| 123:9b71e8e665a3 | 124:0ec04793409a |
|---|---|
| 456 { | 456 { |
| 457 set_sleep_reason( Cyg_Thread::TIMEOUT ); | 457 set_sleep_reason( Cyg_Thread::TIMEOUT ); |
| 458 current->sleep(); // prepare to sleep | 458 current->sleep(); // prepare to sleep |
| 459 current->state |= COUNTSLEEP; // Set the state | 459 current->state |= COUNTSLEEP; // Set the state |
| 460 | 460 |
| 461 CYG_ASSERT( Cyg_Scheduler::get_sched_lock() == 1, | 461 Cyg_Scheduler::reschedule(); |
| 462 "Called with non-zero scheduler lock"); | |
| 463 | |
| 464 Cyg_Scheduler::unlock(); | |
| 465 Cyg_Scheduler::lock(); | |
| 466 | 462 |
| 467 // clear the timer; if it actually fired, no worries. | 463 // clear the timer; if it actually fired, no worries. |
| 468 clear_timer(); | 464 clear_timer(); |
| 469 } | 465 } |
| 470 } | 466 } |
