gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r9075 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r9075 - gnunet/src/util
Date: Fri, 2 Oct 2009 07:05:34 -0600

Author: grothoff
Date: 2009-10-02 07:05:33 -0600 (Fri, 02 Oct 2009)
New Revision: 9075

Modified:
   gnunet/src/util/connection.c
   gnunet/src/util/scheduler.c
Log:
done

Modified: gnunet/src/util/connection.c
===================================================================
--- gnunet/src/util/connection.c        2009-10-02 13:02:40 UTC (rev 9074)
+++ gnunet/src/util/connection.c        2009-10-02 13:05:33 UTC (rev 9075)
@@ -38,7 +38,7 @@
 #include "gnunet_resolver_service.h"
 #include "gnunet_scheduler_lib.h"
 
-#define DEBUG_CONNECTION GNUNET_YES
+#define DEBUG_CONNECTION GNUNET_NO
 
 
 /**

Modified: gnunet/src/util/scheduler.c
===================================================================
--- gnunet/src/util/scheduler.c 2009-10-02 13:02:40 UTC (rev 9074)
+++ gnunet/src/util/scheduler.c 2009-10-02 13:05:33 UTC (rev 9075)
@@ -239,7 +239,6 @@
   pos = sched->pending;
   while (pos != NULL)
     {
-
       if ((pos->prereq_id != GNUNET_SCHEDULER_NO_TASK) &&
           (GNUNET_YES == is_pending (sched, pos->prereq_id)))
         {
@@ -369,6 +368,11 @@
   pos = handle->pending;
   while (pos != NULL)
     {
+#if 0
+      fprintf (stderr,
+              "Checking readyness of task: %llu\n",
+              pos->id);
+#endif
       next = pos->next;
       if (GNUNET_YES == is_ready (handle, pos, now, rs, ws))
         {
@@ -632,6 +636,11 @@
   enum GNUNET_SCHEDULER_Priority p;
   void *ret;
 
+#if 0
+  fprintf (stderr,
+          "Canceling task: %llu\n",
+          task);
+#endif
   prev = NULL;
   t = sched->pending;
   while (t != NULL)
@@ -701,6 +710,11 @@
   task->reason = reason;
   task->priority = sched->current_priority;
   task->run_on_shutdown = run_on_shutdown;
+#if 0
+  fprintf (stderr,
+          "Adding continuation task: %llu\n",
+          task->id);
+#endif
   queue_ready_task (sched, task);
 }
 
@@ -908,7 +922,8 @@
                              GNUNET_SCHEDULER_TaskIdentifier
                              prerequisite_task,
                              struct GNUNET_TIME_Relative delay,
-                             const struct GNUNET_NETWORK_FDSet * rs, const 
struct GNUNET_NETWORK_FDSet * ws,
+                             const struct GNUNET_NETWORK_FDSet * rs,
+                            const struct GNUNET_NETWORK_FDSet * ws,
                              GNUNET_SCHEDULER_Task main, void *cls)
 {
   struct Task *task;
@@ -932,6 +947,11 @@
   task->run_on_shutdown = run_on_shutdown;
   task->next = sched->pending;
   sched->pending = task;
+#if 0
+  fprintf (stderr,
+          "Adding task: %llu\n",
+          task->id);
+#endif
   return task->id;
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]