Mercurial > flash_v2
comparison packages/kernel/current/src/sync/bin_sem.cxx @ 115:6ed91473a1cd ecos-sw-2000-08-21
Merge from eCos master repository on 2000-08-21-22:40:54-BST
| author | jlarmour |
|---|---|
| date | Fri, 25 Aug 2000 17:32:38 +0000 |
| parents | bf00f99aec69 |
| children | e0c0827131d1 |
comparison
equal
deleted
inserted
replaced
| 114:5ad2b71d525e | 115:6ed91473a1cd |
|---|---|
| 90 | 90 |
| 91 queue.enqueue( self ); | 91 queue.enqueue( self ); |
| 92 | 92 |
| 93 CYG_INSTRUMENT_BINSEM( WAIT, this, 0 ); | 93 CYG_INSTRUMENT_BINSEM( WAIT, this, 0 ); |
| 94 | 94 |
| 95 CYG_ASSERT( Cyg_Scheduler::get_sched_lock() == 1, "Called with non-zero scheduler lock"); | 95 // Allow other threads to run |
| 96 | 96 Cyg_Scheduler::reschedule(); |
| 97 Cyg_Scheduler::unlock(); | |
| 98 Cyg_Scheduler::lock(); | |
| 99 | 97 |
| 100 CYG_INSTRUMENT_BINSEM( WOKE, this, state ); | 98 CYG_INSTRUMENT_BINSEM( WOKE, this, state ); |
| 101 | 99 |
| 102 switch( self->get_wake_reason() ) | 100 switch( self->get_wake_reason() ) |
| 103 { | 101 { |
