Mercurial > ecos-v3_0-branch
diff packages/kernel/current/src/common/kapi.cxx @ 105:5a0cc6c243a9 ecos-sw-2000-06-30
Merge from eCos master repository on 2000-06-30-08:18:49-BST
| author | jlarmour |
|---|---|
| date | Fri, 30 Jun 2000 16:27:35 +0000 |
| parents | 489eb5632bc3 |
| children | 6ed91473a1cd |
line wrap: on
line diff
--- a/packages/kernel/current/src/common/kapi.cxx +++ b/packages/kernel/current/src/common/kapi.cxx @@ -137,6 +137,13 @@ externC void cyg_scheduler_unlock(void) Cyg_Scheduler::unlock(); } +/* Read the scheduler lock value. */ +externC cyg_ucount32 cyg_scheduler_read_lock(void) +{ + cyg_ucount32 slock = Cyg_Scheduler::get_sched_lock(); + return slock; +} + /*---------------------------------------------------------------------------*/ /* Thread operations */
