Mercurial > flash_v2
comparison packages/kernel/current/src/sync/cnt_sem2.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 | 0ec04793409a |
comparison
equal
deleted
inserted
replaced
| 114:5ad2b71d525e | 115:6ed91473a1cd |
|---|---|
| 276 } | 276 } |
| 277 | 277 |
| 278 // ------------------------------------------------------------------------- | 278 // ------------------------------------------------------------------------- |
| 279 // Get current count value | 279 // Get current count value |
| 280 | 280 |
| 281 cyg_count32 Cyg_Counting_Semaphore2::peek() | 281 cyg_count32 Cyg_Counting_Semaphore2::peek() const |
| 282 { | 282 { |
| 283 // This is a single read of the value of count. | 283 // This is a single read of the value of count. |
| 284 // This is already atomic, hence there is no need | 284 // This is already atomic, hence there is no need |
| 285 // to lock the scheduler. | 285 // to lock the scheduler. |
| 286 | 286 |
