aboutsummaryrefslogtreecommitdiff
path: root/src/util/scheduler.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-24 13:51:03 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-24 13:51:03 +0000
commitc77bdc9b0fec7ce8201c5f3f5c915485abaf2dcd (patch)
treeffd025160bc323c4b84a7ab5f431b1419ac39903 /src/util/scheduler.c
parent41a801e9f6ddbcf4a8ff5d178482fcd025d5ab05 (diff)
downloadgnunet-c77bdc9b0fec7ce8201c5f3f5c915485abaf2dcd.tar.gz
gnunet-c77bdc9b0fec7ce8201c5f3f5c915485abaf2dcd.zip
-let's not introduce stdbool shortly before the release
Diffstat (limited to 'src/util/scheduler.c')
-rw-r--r--src/util/scheduler.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index ba6a04e4f..fb81bafb7 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -1066,8 +1066,8 @@ GNUNET_SCHEDULER_add_continuation (GNUNET_SCHEDULER_Task task, void *task_cls,
1066 * Schedule a new task to be run with a specified priority. 1066 * Schedule a new task to be run with a specified priority.
1067 * 1067 *
1068 * @param prio how important is the new task? 1068 * @param prio how important is the new task?
1069 * @param task main function of the @a task 1069 * @param task main function of the task
1070 * @param task_cls closure of task 1070 * @param task_cls closure of @a task
1071 * @return unique task identifier for the job 1071 * @return unique task identifier for the job
1072 * only valid until @a task is started! 1072 * only valid until @a task is started!
1073 */ 1073 */
@@ -1420,7 +1420,7 @@ GNUNET_SCHEDULER_add_read_net_with_priority (struct GNUNET_TIME_Relative delay,
1420{ 1420{
1421 return GNUNET_SCHEDULER_add_net_with_priority ( 1421 return GNUNET_SCHEDULER_add_net_with_priority (
1422 delay, priority, 1422 delay, priority,
1423 rfd, true, false, 1423 rfd, GNUNET_YES, GNUNET_NO,
1424 task, task_cls); 1424 task, task_cls);
1425} 1425}
1426 1426
@@ -1448,7 +1448,7 @@ GNUNET_SCHEDULER_add_write_net (struct GNUNET_TIME_Relative delay,
1448{ 1448{
1449 return GNUNET_SCHEDULER_add_net_with_priority ( 1449 return GNUNET_SCHEDULER_add_net_with_priority (
1450 delay, GNUNET_SCHEDULER_PRIORITY_DEFAULT, 1450 delay, GNUNET_SCHEDULER_PRIORITY_DEFAULT,
1451 wfd, false, true, 1451 wfd, GNUNET_NO, GNUNET_YES,
1452 task, task_cls); 1452 task, task_cls);
1453} 1453}
1454 1454
@@ -1474,7 +1474,7 @@ GNUNET_SCHEDULER_TaskIdentifier
1474GNUNET_SCHEDULER_add_net_with_priority (struct GNUNET_TIME_Relative delay, 1474GNUNET_SCHEDULER_add_net_with_priority (struct GNUNET_TIME_Relative delay,
1475 enum GNUNET_SCHEDULER_Priority priority, 1475 enum GNUNET_SCHEDULER_Priority priority,
1476 struct GNUNET_NETWORK_Handle *fd, 1476 struct GNUNET_NETWORK_Handle *fd,
1477 bool on_read, bool on_write, 1477 int on_read, int on_write,
1478 GNUNET_SCHEDULER_Task task, void *task_cls) 1478 GNUNET_SCHEDULER_Task task, void *task_cls)
1479{ 1479{
1480#if MINGW 1480#if MINGW
@@ -1524,7 +1524,7 @@ GNUNET_SCHEDULER_add_read_file (struct GNUNET_TIME_Relative delay,
1524{ 1524{
1525 return GNUNET_SCHEDULER_add_file_with_priority ( 1525 return GNUNET_SCHEDULER_add_file_with_priority (
1526 delay, GNUNET_SCHEDULER_PRIORITY_DEFAULT, 1526 delay, GNUNET_SCHEDULER_PRIORITY_DEFAULT,
1527 rfd, true, false, 1527 rfd, GNUNET_YES, GNUNET_NO,
1528 task, task_cls); 1528 task, task_cls);
1529} 1529}
1530 1530
@@ -1551,7 +1551,7 @@ GNUNET_SCHEDULER_add_write_file (struct GNUNET_TIME_Relative delay,
1551{ 1551{
1552 return GNUNET_SCHEDULER_add_file_with_priority ( 1552 return GNUNET_SCHEDULER_add_file_with_priority (
1553 delay, GNUNET_SCHEDULER_PRIORITY_DEFAULT, 1553 delay, GNUNET_SCHEDULER_PRIORITY_DEFAULT,
1554 wfd, false, true, 1554 wfd, GNUNET_NO, GNUNET_YES,
1555 task, task_cls); 1555 task, task_cls);
1556} 1556}
1557 1557
@@ -1563,21 +1563,21 @@ GNUNET_SCHEDULER_add_write_file (struct GNUNET_TIME_Relative delay,
1563 * socket operation is ready. 1563 * socket operation is ready.
1564 * 1564 *
1565 * @param delay when should this operation time out? Use 1565 * @param delay when should this operation time out? Use
1566 * GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown" 1566 * #GNUNET_TIME_UNIT_FOREVER_REL for "on shutdown"
1567 * @param priority priority of the task 1567 * @param priority priority of the task
1568 * @param fd file-descriptor 1568 * @param fd file-descriptor
1569 * @param on_read whether to poll the file-descriptor for readability 1569 * @param on_read whether to poll the file-descriptor for readability
1570 * @param on_write whether to poll the file-descriptor for writability 1570 * @param on_write whether to poll the file-descriptor for writability
1571 * @param task main function of the task 1571 * @param task main function of the task
1572 * @param task_cls closure of task 1572 * @param task_cls closure of @a task
1573 * @return unique task identifier for the job 1573 * @return unique task identifier for the job
1574 * only valid until "task" is started! 1574 * only valid until @a task is started!
1575 */ 1575 */
1576GNUNET_SCHEDULER_TaskIdentifier 1576GNUNET_SCHEDULER_TaskIdentifier
1577GNUNET_SCHEDULER_add_file_with_priority (struct GNUNET_TIME_Relative delay, 1577GNUNET_SCHEDULER_add_file_with_priority (struct GNUNET_TIME_Relative delay,
1578 enum GNUNET_SCHEDULER_Priority priority, 1578 enum GNUNET_SCHEDULER_Priority priority,
1579 const struct GNUNET_DISK_FileHandle *fd, 1579 const struct GNUNET_DISK_FileHandle *fd,
1580 bool on_read, bool on_write, 1580 int on_read, int on_write,
1581 GNUNET_SCHEDULER_Task task, void *task_cls) 1581 GNUNET_SCHEDULER_Task task, void *task_cls)
1582{ 1582{
1583#if MINGW 1583#if MINGW