aboutsummaryrefslogtreecommitdiff
path: root/src/util/scheduler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/scheduler.c')
-rw-r--r--src/util/scheduler.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index 89dba3799..48a3f04ce 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -1380,6 +1380,8 @@ check_fd (struct GNUNET_SCHEDULER_Task *t, int raw_fd)
1380 } 1380 }
1381 } 1381 }
1382} 1382}
1383
1384
1383#endif 1385#endif
1384 1386
1385 1387
@@ -1564,6 +1566,7 @@ GNUNET_SCHEDULER_add_write_net (struct GNUNET_TIME_Relative delay,
1564 task, task_cls); 1566 task, task_cls);
1565} 1567}
1566 1568
1569
1567/** 1570/**
1568 * Schedule a new task to be run with a specified delay or when the 1571 * Schedule a new task to be run with a specified delay or when the
1569 * specified file descriptor is ready. The delay can be 1572 * specified file descriptor is ready. The delay can be
@@ -1857,8 +1860,7 @@ GNUNET_SCHEDULER_add_select (enum GNUNET_SCHEDULER_Priority prio,
1857 * this case gracefully because some libraries such as libmicrohttpd 1860 * this case gracefully because some libraries such as libmicrohttpd
1858 * only provide a hint what the maximum FD number in an FD set might be 1861 * only provide a hint what the maximum FD number in an FD set might be
1859 * and not the exact FD number (see e.g. gnunet-rest-service.c) 1862 * and not the exact FD number (see e.g. gnunet-rest-service.c)
1860 */ 1863 */int no_fds_extracted = (0 == read_nhandles_len) &&
1861 int no_fds_extracted = (0 == read_nhandles_len) &&
1862 (0 == read_fhandles_len) && 1864 (0 == read_fhandles_len) &&
1863 (0 == write_nhandles_len) && 1865 (0 == write_nhandles_len) &&
1864 (0 == write_fhandles_len); 1866 (0 == write_fhandles_len);
@@ -2024,8 +2026,7 @@ GNUNET_SCHEDULER_do_work (struct GNUNET_SCHEDULER_Handle *sh)
2024 * 2026 *
2025 * It might also mean we are busy-waiting because of a programming 2027 * It might also mean we are busy-waiting because of a programming
2026 * error in the external event loop. 2028 * error in the external event loop.
2027 */ 2029 */LOG (GNUNET_ERROR_TYPE_DEBUG,
2028 LOG (GNUNET_ERROR_TYPE_DEBUG,
2029 "GNUNET_SCHEDULER_do_work did not find any ready " 2030 "GNUNET_SCHEDULER_do_work did not find any ready "
2030 "tasks and timeout has not been reached yet.\n"); 2031 "tasks and timeout has not been reached yet.\n");
2031 } 2032 }