projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
971d81d
)
-setpriority is priviledged, so save on those useless syscalls
author
Christian Grothoff
<christian@grothoff.org>
Sat, 6 Oct 2012 18:59:44 +0000
(18:59 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Sat, 6 Oct 2012 18:59:44 +0000
(18:59 +0000)
src/util/scheduler.c
patch
|
blob
|
history
diff --git
a/src/util/scheduler.c
b/src/util/scheduler.c
index 6231a198753efe280b689c330c6e91797a0d15f3..d72fc7fd251906c1c171829da647de87da5536b8 100644
(file)
--- a/
src/util/scheduler.c
+++ b/
src/util/scheduler.c
@@
-565,12
+565,7
@@
run_ready (struct GNUNET_NETWORK_FDSet *rs, struct GNUNET_NETWORK_FDSet *ws)
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