diff packages/kernel/current/src/common/kapi.cxx @ 4:1d7f19c9e4d1 ecos-sw-1999-05-11

Merge from eCos master repository on 1999-05-11-21:11:10-BST
author jlarmour
date Tue, 11 May 1999 14:07:25 +0000
parents 443894e2e912
children ece80412419a
line wrap: on
line diff
--- a/packages/kernel/current/src/common/kapi.cxx
+++ b/packages/kernel/current/src/common/kapi.cxx
@@ -104,30 +104,16 @@ externC void cyg_scheduler_start(void)
     Cyg_Scheduler::start();
 }
 
-/* Lock the scheduler. We only allow this to take the lock from */
-/* zero to 1. Any other transition implies that this function   */
-/* is being called from an ISR/DSR or some other illegal place. */
+/* Lock the scheduler. */
 externC void cyg_scheduler_lock(void)
 {
     Cyg_Scheduler::lock();
-    
-    CYG_ASSERT( Cyg_Scheduler::get_sched_lock() == 1 ,
-                "Cannot nest calls to cyg_scheduler_lock");
-
-    if( Cyg_Scheduler::get_sched_lock() != 1 )
-        Cyg_Scheduler::unlock();        
 }
 
-/* Unlock the scheduler. Like lock, we only allow a 1->0        */
-/* transition.                                                  */
+/* Unlock the scheduler. */
 externC void cyg_scheduler_unlock(void)
 {
-    CYG_ASSERT( Cyg_Scheduler::get_sched_lock() == 1 ,
-                "Bad call to cyg_scheduler_unlock");
-
-    if( Cyg_Scheduler::get_sched_lock() == 1 )
-        Cyg_Scheduler::unlock();
-    
+    Cyg_Scheduler::unlock();
 }
 
 /*---------------------------------------------------------------------------*/