Skip to content

Commit

Permalink
rename enum
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Nov 12, 2024
1 parent c507d13 commit c54b99e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ void aws_event_loop_override_default_type(enum aws_event_loop_type default_type_
* retrieve the default type value.
* If `aws_event_loop_override_default_type` has been called, return the override default type.
*/
static enum aws_event_loop_type aws_event_loop_get_default_type(void) {
enum aws_event_loop_type aws_event_loop_get_default_type(void) {
if (s_default_event_loop_type_override != AWS_EVENT_LOOP_PLATFORM_DEFAULT) {
return s_default_event_loop_type_override;
}
Expand Down
6 changes: 3 additions & 3 deletions tests/event_loop_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int s_test_event_loop_xthread_scheduled_tasks_execute(struct aws_allocato

// The dispatch queue will schedule tasks on thread pools, it is unpredicatable which thread we run the task on,
// therefore we do not validate the thread id for dispatch queue.
if (aws_event_loop_get_default_type() != AWS_ELT_DISPATCH_QUEUE) {
if (aws_event_loop_get_default_type() != AWS_EVENT_LOOP_DISPATCH_QUEUE) {
ASSERT_FALSE(aws_thread_thread_id_equal(task_args.thread_id, aws_thread_current_thread_id()));
}

Expand Down Expand Up @@ -156,7 +156,7 @@ static int s_test_event_loop_canceled_tasks_run_in_el_thread(struct aws_allocato
ASSERT_TRUE(task1_args.was_in_thread);
// The dispatch queue will schedule tasks on thread pools, it is unpredicatable which thread we run the task on,
// therefore we do not validate the thread id for dispatch queue.
if (aws_event_loop_get_default_type() != AWS_ELT_DISPATCH_QUEUE) {
if (aws_event_loop_get_default_type() != AWS_EVENT_LOOP_DISPATCH_QUEUE) {
ASSERT_FALSE(aws_thread_thread_id_equal(task1_args.thread_id, aws_thread_current_thread_id()));
}
ASSERT_INT_EQUALS(AWS_TASK_STATUS_RUN_READY, task1_args.status);
Expand All @@ -174,7 +174,7 @@ static int s_test_event_loop_canceled_tasks_run_in_el_thread(struct aws_allocato
ASSERT_TRUE(task2_args.was_in_thread);
// The dispatch queue will schedule tasks on thread pools, it is unpredicatable which thread we run the task on,
// therefore we do not validate the thread id for dispatch queue.
if (aws_event_loop_get_default_type() != AWS_ELT_DISPATCH_QUEUE) {
if (aws_event_loop_get_default_type() != AWS_EVENT_LOOP_DISPATCH_QUEUE) {
ASSERT_TRUE(aws_thread_thread_id_equal(task2_args.thread_id, aws_thread_current_thread_id()));
}
ASSERT_INT_EQUALS(AWS_TASK_STATUS_CANCELED, task2_args.status);
Expand Down

0 comments on commit c54b99e

Please sign in to comment.