Skip to content

Commit

Permalink
fix event loop schedule future
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Sep 16, 2024
1 parent a428cd8 commit 5ab8f24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/darwin/dispatch_queue_event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ static void s_schedule_task_common(struct aws_event_loop *event_loop, struct aws
bool should_schedule = false;

bool is_empty = aws_linked_list_empty(&dispatch_loop->synced_data.cross_thread_tasks);
task->timestamp = run_at_nanos;

// We dont have control to dispatch queue thread, threat all tasks are threated as cross thread tasks
aws_linked_list_push_back(&dispatch_loop->synced_data.cross_thread_tasks, &task->node);
Expand Down

0 comments on commit 5ab8f24

Please sign in to comment.