OSSP CVS Repository

ossp - Check-in [2761]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2761
Date: 2002-Nov-07 16:38:40 (local)
2002-Nov-07 15:38:40 (UTC)
User:rse
Branch:
Comment: Fix dropping of scheduler thread pools and this way fix memory leak.
Tickets:
Inspections:
Files:
ossp-pkg/pth/ChangeLog      1.589 -> 1.590     3 inserted, 0 deleted
ossp-pkg/pth/pth_sched.c      1.84 -> 1.85     5 inserted, 5 deleted

ossp-pkg/pth/ChangeLog 1.589 -> 1.590

--- ChangeLog    2002/11/07 15:21:06     1.589
+++ ChangeLog    2002/11/07 15:38:40     1.590
@@ -21,6 +21,9 @@
 
   Changes between 1.4.1 and 1.5.0 (27-Jan-2002 to xx-Nov-2002)
 
+   *) Fix dropping of scheduler thread pools and this way fix memory leak.
+      [Ralf S. Engelschall]
+
    *) Check for PTH_FDMODE_ERROR error conditions internally, too.
       [Ralf S. Engelschall]
 


ossp-pkg/pth/pth_sched.c 1.84 -> 1.85

--- pth_sched.c  2002/11/05 19:43:06     1.84
+++ pth_sched.c  2002/11/07 15:38:40     1.85
@@ -81,27 +81,27 @@
     pth_t t;
 
     /* clear the new queue */
-    while ((t = pth_pqueue_delmax(&pth_NQ)) != NULL);
+    while ((t = pth_pqueue_delmax(&pth_NQ)) != NULL)
         pth_tcb_free(t);
     pth_pqueue_init(&pth_NQ);
 
     /* clear the ready queue */
-    while ((t = pth_pqueue_delmax(&pth_RQ)) != NULL);
+    while ((t = pth_pqueue_delmax(&pth_RQ)) != NULL)
         pth_tcb_free(t);
     pth_pqueue_init(&pth_RQ);
 
     /* clear the waiting queue */
-    while ((t = pth_pqueue_delmax(&pth_WQ)) != NULL);
+    while ((t = pth_pqueue_delmax(&pth_WQ)) != NULL)
         pth_tcb_free(t);
     pth_pqueue_init(&pth_WQ);
 
     /* clear the suspend queue */
-    while ((t = pth_pqueue_delmax(&pth_SQ)) != NULL);
+    while ((t = pth_pqueue_delmax(&pth_SQ)) != NULL)
         pth_tcb_free(t);
     pth_pqueue_init(&pth_SQ);
 
     /* clear the dead queue */
-    while ((t = pth_pqueue_delmax(&pth_DQ)) != NULL);
+    while ((t = pth_pqueue_delmax(&pth_DQ)) != NULL)
         pth_tcb_free(t);
     pth_pqueue_init(&pth_DQ);
     return;

CVSTrac 2.0.1