From 1f96413bd3054e6727faee0e21bff418d3cf15ae Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 11 Oct 2023 16:43:48 +0000 Subject: [PATCH] A few places I missed tracking busy worker threads. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4507 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ssb.c | 2 ++ src/ssb.connections.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/ssb.c b/src/ssb.c index 1b9f3620..bf116e9d 100644 --- a/src/ssb.c +++ b/src/ssb.c @@ -3810,8 +3810,10 @@ static bool _get_global_setting_bool(tf_ssb_t* ssb, const char* name, bool defau static void _tf_ssb_update_settings_work(uv_work_t* work) { update_settings_t* update = work->data; + tf_ssb_record_thread_busy(update->ssb, true); update->is_room = _get_global_setting_bool(update->ssb, "room", true); _get_global_setting_string(update->ssb, "room_name", update->room_name, sizeof(update->room_name)); + tf_ssb_record_thread_busy(update->ssb, false); } static void _tf_ssb_update_settings_after_work(uv_work_t* work, int result) diff --git a/src/ssb.connections.c b/src/ssb.connections.c index 9e2f6585..03210ada 100644 --- a/src/ssb.connections.c +++ b/src/ssb.connections.c @@ -89,7 +89,9 @@ typedef struct _tf_ssb_connections_get_next_t static void _tf_ssb_connections_get_next_work(uv_work_t* work) { tf_ssb_connections_get_next_t* next = work->data; + tf_ssb_record_thread_busy(next->ssb, true); next->ready = _tf_ssb_connections_get_next_connection(next->connections, next->host, sizeof(next->host), &next->port, next->key, sizeof(next->key)); + tf_ssb_record_thread_busy(next->ssb, false); } static void _tf_ssb_connections_get_next_after_work(uv_work_t* work, int status)