OSSP CVS Repository

ossp - Difference in ossp-pkg/pth/pth_sched.c versions 1.89 and 1.90
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/pth/pth_sched.c 1.89 -> 1.90

--- pth_sched.c  2003/01/01 15:49:12     1.89
+++ pth_sched.c  2003/03/22 20:31:49     1.90
@@ -358,8 +358,10 @@
          */
         if (   pth_pqueue_elements(&pth_RQ) == 0
             && pth_pqueue_elements(&pth_NQ) == 0)
+            /* still no NEW or READY threads, so we have to wait for new work */
             pth_sched_eventmanager(&snapshot, FALSE /* wait */);
         else
+            /* already NEW or READY threads exists, so just poll for even more work */
             pth_sched_eventmanager(&snapshot, TRUE  /* poll */);
     }
 

CVSTrac 2.0.1