Skip to content

Commit

Permalink
edit order of aws_event_loop_new_with_dispatch_queue
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Jan 27, 2025
1 parent 3fd8fcb commit faeb6da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/darwin/dispatch_queue_event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,13 @@ struct aws_event_loop *aws_event_loop_new_with_dispatch_queue(

struct dispatch_loop_context *dispatch_loop_context =
aws_mem_calloc(alloc, 1, sizeof(struct dispatch_loop_context));
aws_ref_count_init(&dispatch_loop_context->ref_count, dispatch_loop_context, s_dispatch_loop_context_destroy);
dispatch_loop_context->allocator = alloc;
aws_ref_count_init(&dispatch_loop_context->ref_count, dispatch_loop_context, s_dispatch_loop_context_destroy);
dispatch_loop->context = dispatch_loop_context;
aws_rw_lock_init(&dispatch_loop_context->lock);
dispatch_loop_context->io_dispatch_loop = dispatch_loop;

aws_rw_lock_init(&dispatch_loop_context->lock);

aws_mutex_init(&dispatch_loop_context->scheduling_state.services_lock);
if (aws_priority_queue_init_dynamic(
&dispatch_loop_context->scheduling_state.scheduled_services,
Expand Down

0 comments on commit faeb6da

Please sign in to comment.