Skip to content

Commit

Permalink
print ref count
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Dec 17, 2024
1 parent 0ee2bc4 commit 4b1ed56
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/darwin/dispatch_queue_event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ struct dispatch_loop_context {
struct aws_ref_count ref_count;
};

/**
* The data structure used to track the dispatch queue execution iteration (block). Each entry associated to an
* iteration scheduled on Apple Dispatch Queue.
*/
struct scheduled_service_entry {
struct aws_allocator *allocator;
uint64_t timestamp;
Expand Down Expand Up @@ -224,9 +228,9 @@ static void s_dispatch_event_loop_destroy(void *context) {
if (dispatch_loop->context) {
AWS_LOGF_TRACE(
AWS_LS_IO_EVENT_LOOP,
"id=%p: remaining context ref count %d",
"id=%p: remaining context ref count %zu",
(void *)event_loop,
(int *)dispatch_loop->context->ref_count.ref_count.value);
AWS_ATOMIC_VAR_INTVAL(&(dispatch_loop->context->ref_count.ref_count)));
}
}

Expand Down

0 comments on commit 4b1ed56

Please sign in to comment.