gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r24210 - gnunet/src/util
Date: Sat, 6 Oct 2012 20:59:44 +0200

Author: grothoff
Date: 2012-10-06 20:59:44 +0200 (Sat, 06 Oct 2012)
New Revision: 24210

Modified:
   gnunet/src/util/scheduler.c
Log:
-setpriority is priviledged, so save on those useless syscalls

Modified: gnunet/src/util/scheduler.c
===================================================================
--- gnunet/src/util/scheduler.c 2012-10-06 14:23:35 UTC (rev 24209)
+++ gnunet/src/util/scheduler.c 2012-10-06 18:59:44 UTC (rev 24210)
@@ -565,12 +565,7 @@
     GNUNET_assert (pos != NULL);        /* ready_count wrong? */
     ready[p] = pos->next;
     ready_count--;
-    if (current_priority != pos->priority)
-    {
-      current_priority = pos->priority;
-      (void) GNUNET_OS_set_process_priority (GNUNET_OS_process_current (),
-                                             pos->priority);
-    }
+    current_priority = pos->priority;
     current_lifeness = pos->lifeness;
     active_task = pos;
 #if PROFILE_DELAYS




reply via email to

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