diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-02-26 14:08:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-03-03 18:32:29 +0100 |
commit | 22f2a119c4add6e2421472b67b041f38ed74fdb3 (patch) | |
tree | b614a44befb5feb07367c5c409acf12e812cf159 /src/util/scheduler.c | |
parent | 74ccb6cad1991f6f3897f44f48cee76a46e5055d (diff) | |
download | gnunet-22f2a119c4add6e2421472b67b041f38ed74fdb3.tar.gz gnunet-22f2a119c4add6e2421472b67b041f38ed74fdb3.zip |
fix newline, reduce verbosity
Diffstat (limited to 'src/util/scheduler.c')
-rw-r--r-- | src/util/scheduler.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 51afc85e5..7c1a8326a 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -1953,7 +1953,7 @@ GNUNET_SCHEDULER_task_ready (struct GNUNET_SCHEDULER_Task *task, | |||
1953 | /** | 1953 | /** |
1954 | * Function called by external event loop implementations to tell the | 1954 | * Function called by external event loop implementations to tell the |
1955 | * scheduler to run some of the tasks that are ready. Must be called | 1955 | * scheduler to run some of the tasks that are ready. Must be called |
1956 | * only after #GNUNET_SCHEDULER_driver_init has been called and before | 1956 | * only after #GNUNET_SCHEDULER_driver_init has been called and before |
1957 | * #GNUNET_SCHEDULER_driver_done is called. | 1957 | * #GNUNET_SCHEDULER_driver_done is called. |
1958 | * This function may return even though there are tasks left to run | 1958 | * This function may return even though there are tasks left to run |
1959 | * just to give other tasks a chance as well. If we return #GNUNET_YES, | 1959 | * just to give other tasks a chance as well. If we return #GNUNET_YES, |
@@ -2023,9 +2023,9 @@ GNUNET_SCHEDULER_do_work (struct GNUNET_SCHEDULER_Handle *sh) | |||
2023 | * waiting for the timeout, so we handle this gracefully. It might | 2023 | * waiting for the timeout, so we handle this gracefully. It might |
2024 | * also be a programming error in the driver though. | 2024 | * also be a programming error in the driver though. |
2025 | */ | 2025 | */ |
2026 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 2026 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2027 | "GNUNET_SCHEDULER_do_work did not find any ready " | 2027 | "GNUNET_SCHEDULER_do_work did not find any ready " |
2028 | "tasks and timeout has not been reached yet."); | 2028 | "tasks and timeout has not been reached yet.\n"); |
2029 | return GNUNET_NO; | 2029 | return GNUNET_NO; |
2030 | } | 2030 | } |
2031 | /** | 2031 | /** |
@@ -2128,7 +2128,7 @@ GNUNET_SCHEDULER_do_work (struct GNUNET_SCHEDULER_Handle *sh) | |||
2128 | * Function called by external event loop implementations to initialize | 2128 | * Function called by external event loop implementations to initialize |
2129 | * the scheduler. An external implementation has to provide @a driver | 2129 | * the scheduler. An external implementation has to provide @a driver |
2130 | * which contains callbacks for the scheduler (see definition of struct | 2130 | * which contains callbacks for the scheduler (see definition of struct |
2131 | * #GNUNET_SCHEDULER_Driver). The callbacks are used to instruct the | 2131 | * #GNUNET_SCHEDULER_Driver). The callbacks are used to instruct the |
2132 | * external implementation to watch for events. If it detects any of | 2132 | * external implementation to watch for events. If it detects any of |
2133 | * those events it is expected to call #GNUNET_SCHEDULER_do_work to let | 2133 | * those events it is expected to call #GNUNET_SCHEDULER_do_work to let |
2134 | * the scheduler handle it. If an event is related to a specific task | 2134 | * the scheduler handle it. If an event is related to a specific task |
@@ -2137,11 +2137,11 @@ GNUNET_SCHEDULER_do_work (struct GNUNET_SCHEDULER_Handle *sh) | |||
2137 | * before by calling #GNUNET_SCHEDULER_task_ready. | 2137 | * before by calling #GNUNET_SCHEDULER_task_ready. |
2138 | 2138 | ||
2139 | * This function has to be called before any tasks are scheduled and | 2139 | * This function has to be called before any tasks are scheduled and |
2140 | * before GNUNET_SCHEDULER_do_work is called for the first time. It | 2140 | * before GNUNET_SCHEDULER_do_work is called for the first time. It |
2141 | * allocates resources that have to be freed again by calling | 2141 | * allocates resources that have to be freed again by calling |
2142 | * #GNUNET_SCHEDULER_driver_done. | 2142 | * #GNUNET_SCHEDULER_driver_done. |
2143 | * | 2143 | * |
2144 | * This function installs the same signal handlers as | 2144 | * This function installs the same signal handlers as |
2145 | * #GNUNET_SCHEDULER_run. This means SIGTERM (and other similar signals) | 2145 | * #GNUNET_SCHEDULER_run. This means SIGTERM (and other similar signals) |
2146 | * will induce a call to #GNUNET_SCHEDULER_shutdown during the next | 2146 | * will induce a call to #GNUNET_SCHEDULER_shutdown during the next |
2147 | * call to #GNUNET_SCHEDULER_do_work. As a result, SIGTERM causes all | 2147 | * call to #GNUNET_SCHEDULER_do_work. As a result, SIGTERM causes all |
@@ -2228,7 +2228,7 @@ GNUNET_SCHEDULER_driver_init (const struct GNUNET_SCHEDULER_Driver *driver) | |||
2228 | * by external event loop implementations after the scheduler has | 2228 | * by external event loop implementations after the scheduler has |
2229 | * shut down. This is the case if both of the following conditions | 2229 | * shut down. This is the case if both of the following conditions |
2230 | * are met: | 2230 | * are met: |
2231 | * | 2231 | * |
2232 | * - all tasks the scheduler has added through the driver's add | 2232 | * - all tasks the scheduler has added through the driver's add |
2233 | * callback have been removed again through the driver's del | 2233 | * callback have been removed again through the driver's del |
2234 | * callback | 2234 | * callback |
@@ -2451,7 +2451,7 @@ select_set_wakeup (void *cls, | |||
2451 | struct GNUNET_TIME_Absolute dt) | 2451 | struct GNUNET_TIME_Absolute dt) |
2452 | { | 2452 | { |
2453 | struct DriverContext *context = cls; | 2453 | struct DriverContext *context = cls; |
2454 | 2454 | ||
2455 | GNUNET_assert (NULL != context); | 2455 | GNUNET_assert (NULL != context); |
2456 | context->timeout = dt; | 2456 | context->timeout = dt; |
2457 | } | 2457 | } |