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
This commit is contained in:
Cory McWilliams 2023-10-11 16:43:48 +00:00
parent 9695621c91
commit 1f96413bd3
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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)