From f9d1dd2d7120c7494b8617aac11689ab05eb8149 Mon Sep 17 00:00:00 2001 From: Vera Xia Date: Wed, 27 Nov 2024 11:32:04 -0800 Subject: [PATCH] remove manually increased thread count --- source/darwin/dispatch_queue_event_loop.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/darwin/dispatch_queue_event_loop.c b/source/darwin/dispatch_queue_event_loop.c index eea3e63ce..831e8e90d 100644 --- a/source/darwin/dispatch_queue_event_loop.c +++ b/source/darwin/dispatch_queue_event_loop.c @@ -129,7 +129,6 @@ static void s_dispatch_event_loop_destroy(void *context) { aws_mem_release(event_loop->alloc, event_loop); AWS_LOGF_DEBUG(AWS_LS_IO_EVENT_LOOP, "id=%p: Destroyed Dispatch Queue Event Loop.", (void *)event_loop); - aws_thread_decrement_unjoined_count(); } /** Return a aws_string* with unique dispatch queue id string. The id is In format of @@ -205,9 +204,6 @@ struct aws_event_loop *aws_event_loop_new_with_dispatch_queue( loop->impl_data = dispatch_loop; loop->vtable = &s_vtable; - /** manually increment the thread count, so the library will wait for dispatch queue releasing */ - aws_thread_increment_unjoined_count(); - return loop; clean_up: