Skip to content

Commit

Permalink
remove manually increased thread count
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Nov 27, 2024
1 parent 86b1e08 commit f9d1dd2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions source/darwin/dispatch_queue_event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f9d1dd2

Please sign in to comment.