diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-25 13:02:44 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-25 13:04:04 +0200 |
commit | e3c63c726a940afe3a79515ddfb6f7b128e76708 (patch) | |
tree | 5b526a44fb4e53be78b0d6b92c37bc3270b02cfe /src/include/gnunet_scheduler_lib.h | |
parent | 2f3db56899e063f04271f802f451e07dfcf73d98 (diff) | |
download | gnunet-e3c63c726a940afe3a79515ddfb6f7b128e76708.tar.gz gnunet-e3c63c726a940afe3a79515ddfb6f7b128e76708.zip |
Peter@equalit.ie wrote (on gnunet-developers):
Continuing a small IRC discussion
https://gnunet.org/bot/log/gnunet/2017-10-05#T1521518
Here is a change to optionally disable installing signal handlers in
GNUnet's scheduler:
https://github.com/equalitie/gnunet/commit/72d02205e1f25ec0df3a2d7efe44c8990ffead53?diff=split
(also attached)
=> patch looks fine, checkin in. -C
Diffstat (limited to 'src/include/gnunet_scheduler_lib.h')
-rw-r--r-- | src/include/gnunet_scheduler_lib.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h index 875f5043a..a855ab8ab 100644 --- a/src/include/gnunet_scheduler_lib.h +++ b/src/include/gnunet_scheduler_lib.h | |||
@@ -400,6 +400,22 @@ void | |||
400 | GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_TaskCallback task, | 400 | GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_TaskCallback task, |
401 | void *task_cls); | 401 | void *task_cls); |
402 | 402 | ||
403 | /** | ||
404 | * Initialize and run scheduler. This function will return when all | ||
405 | * tasks have completed. When @ install_signals is GNUNET_YES, then | ||
406 | * this function behaves in the same was as GNUNET_SCHEDULER_run does. | ||
407 | * If @ install_signals is GNUNET_NO then no signal handlers are | ||
408 | * installed. | ||
409 | * | ||
410 | * @param install_signals whether to install signals (GNUNET_YES/NO) | ||
411 | * @param task task to run first (and immediately) | ||
412 | * @param task_cls closure of @a task | ||
413 | */ | ||
414 | void | ||
415 | GNUNET_SCHEDULER_run_with_optional_signals (int install_signals, | ||
416 | GNUNET_SCHEDULER_TaskCallback task, | ||
417 | void *task_cls); | ||
418 | |||
403 | 419 | ||
404 | /** | 420 | /** |
405 | * Request the shutdown of a scheduler. Marks all tasks | 421 | * Request the shutdown of a scheduler. Marks all tasks |