commit 3620236434fd9ae9b316cce0164808cb2142e96e
parent e21fe54799a679dca7ca28d175c3ba8f6e6ec9b3
Author: Jacki <jacki@thejackimonster.de>
Date: Sat, 29 Jun 2024 02:58:43 +0200
Adjust priorities of background tasks
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c
@@ -184,7 +184,7 @@ context_request_message (struct GNUNET_CHAT_Context* context,
return;
context->request_task = GNUNET_SCHEDULER_add_with_priority(
- GNUNET_SCHEDULER_PRIORITY_IDLE,
+ GNUNET_SCHEDULER_PRIORITY_BACKGROUND,
cb_context_request_messages,
context
);
diff --git a/src/gnunet_chat_context_intern.c b/src/gnunet_chat_context_intern.c
@@ -107,7 +107,7 @@ cb_context_request_messages (void *cls)
if (!(context->room))
{
context->request_task = GNUNET_SCHEDULER_add_with_priority(
- GNUNET_SCHEDULER_PRIORITY_IDLE,
+ GNUNET_SCHEDULER_PRIORITY_BACKGROUND,
cb_context_request_messages,
context
);
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c
@@ -373,7 +373,7 @@ send_refresh:
return;
handle->refresh = GNUNET_SCHEDULER_add_with_priority(
- GNUNET_SCHEDULER_PRIORITY_IDLE,
+ GNUNET_SCHEDULER_PRIORITY_BACKGROUND,
on_handle_refresh,
handle
);
diff --git a/src/gnunet_chat_lib_intern.c b/src/gnunet_chat_lib_intern.c
@@ -55,7 +55,7 @@ task_handle_destruction (void *cls)
{
handle->destruction = GNUNET_SCHEDULER_add_delayed_with_priority(
GNUNET_TIME_relative_get_millisecond_(),
- GNUNET_SCHEDULER_PRIORITY_IDLE,
+ GNUNET_SCHEDULER_PRIORITY_BACKGROUND,
task_handle_destruction,
handle
);