Skip to content

Commit

Permalink
fix print...
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Dec 17, 2024
1 parent 4b1ed56 commit 6435540
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source/darwin/dispatch_queue_event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,19 @@ static void s_dispatch_event_loop_destroy(void *context) {

aws_mutex_clean_up(&dispatch_loop->synced_cross_thread_data.lock);

aws_mem_release(dispatch_loop->allocator, dispatch_loop);
aws_event_loop_clean_up_base(event_loop);
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);
if (dispatch_loop->context) {
AWS_LOGF_TRACE(
AWS_LS_IO_EVENT_LOOP,
"id=%p: remaining context ref count %zu",
(void *)event_loop,
AWS_ATOMIC_VAR_INTVAL(&(dispatch_loop->context->ref_count.ref_count)));
}

aws_mem_release(dispatch_loop->allocator, dispatch_loop);
aws_event_loop_clean_up_base(event_loop);
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);
}

/** Return a aws_string* with unique dispatch queue id string. The id is In format of
Expand Down

0 comments on commit 6435540

Please sign in to comment.