diff packages/kernel/current/include/kapi.h @ 84:489eb5632bc3 ecos-sw-2000-04-28

Merge from eCos master repository on 2000-04-28-18:44:39-BST
author jlarmour
date Fri, 28 Apr 2000 18:18:36 +0000
parents bf00f99aec69
children 5a0cc6c243a9
line wrap: on
line diff
--- a/packages/kernel/current/include/kapi.h
+++ b/packages/kernel/current/include/kapi.h
@@ -127,6 +127,11 @@ void cyg_scheduler_start(void) __attribu
 void cyg_scheduler_lock(void);
 
 void cyg_scheduler_unlock(void);
+
+/* Just like 'cyg_scheduler_lock()', but never take the lock higher than 1  */
+/* Thus this call is safe even if the scheduler is already locked and a     */
+/* subsequent call to 'cyg_scheduler_unlock()' will completely unlock.      */
+void cyg_scheduler_safe_lock(void);
     
 /*---------------------------------------------------------------------------*/
 /* Thread operations */