diff packages/kernel/current/src/sched/sched.cxx @ 130:eb9fd8c04db3 ecos-sw-2000-10-23

Merge from eCos master repository on 2000-10-23-17:01:37-BST
author jlarmour
date Mon, 23 Oct 2000 17:10:57 +0000
parents 0c2b7be0d798
children 6b5f480c6929
line wrap: on
line diff
--- a/packages/kernel/current/src/sched/sched.cxx
+++ b/packages/kernel/current/src/sched/sched.cxx
@@ -130,7 +130,7 @@ void Cyg_Scheduler::unlock_inner( cyg_uc
         // Call any pending DSRs. Do this here to ensure that any
         // threads that get awakened are properly scheduled.
 
-        if( Cyg_Interrupt::DSRs_pending() )
+        if( new_lock == 0 && Cyg_Interrupt::DSRs_pending() )
             Cyg_Interrupt::call_pending_DSRs();
 #endif