Skip to content

Commit

Permalink
print context ref
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Dec 17, 2024
1 parent 6b187af commit 9e3ef7d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/darwin/dispatch_queue_event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,13 @@ 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);
if (dispatch_loop->context) {
AWS_LOGF_TRACE(
AWS_LS_IO_EVENT_LOOP,
"id=%p: remaining context ref count %d",
(void *)event_loop,
*(int*)dispatch_loop->context->ref_count.ref_count.value);
}
}

/** Return a aws_string* with unique dispatch queue id string. The id is In format of
Expand Down Expand Up @@ -378,7 +385,7 @@ static int s_run(struct aws_event_loop *event_loop) {
s_try_schedule_new_iteration(dispatch_loop->context, 0);
s_unlock_service_entries(dispatch_loop->context);
s_runlock_dispatch_loop_context(dispatch_loop->context);
}
}
s_unlock_cross_thread_data(dispatch_loop);

return AWS_OP_SUCCESS;
Expand Down

0 comments on commit 9e3ef7d

Please sign in to comment.