Skip to content

Commit

Permalink
remove is_executing check
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Oct 25, 2024
1 parent b44c510 commit b0f85f2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions source/darwin/dispatch_queue_event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,6 @@ bool begin_iteration(struct scheduled_service_entry *entry) {

aws_mutex_lock(&dispatch_loop->synced_data.lock);

// someone else is already going, do nothing
if (dispatch_loop->synced_data.scheduling_state.is_executing_iteration) {
goto done;
}

// swap the cross-thread tasks into task-local data
AWS_FATAL_ASSERT(aws_linked_list_empty(&dispatch_loop->local_cross_thread_tasks));
aws_linked_list_swap_contents(
Expand All @@ -310,9 +305,6 @@ bool begin_iteration(struct scheduled_service_entry *entry) {
aws_linked_list_remove(&entry->node);

should_execute_iteration = true;

done:

aws_mutex_unlock(&dispatch_loop->synced_data.lock);

return should_execute_iteration;
Expand Down

0 comments on commit b0f85f2

Please sign in to comment.