Skip to content

Commit

Permalink
Update for new thread join APIs (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
bretambrose authored Feb 17, 2021
1 parent ab2120f commit 2cd5c53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions source/s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ void aws_s3_library_clean_up(void) {
}

s_library_initialized = false;
aws_thread_join_all_managed();

aws_hash_table_clean_up(&s_compute_platform_info_table);
aws_unregister_log_subject_info_list(&s_s3_log_subject_list);
Expand Down
6 changes: 2 additions & 4 deletions tests/s3_tester.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,10 @@ void aws_s3_tester_clean_up(struct aws_s3_tester *tester) {
aws_event_loop_group_release(tester->el_group);
tester->el_group = NULL;

aws_s3_library_clean_up();

aws_condition_variable_clean_up(&tester->signal);
aws_mutex_clean_up(&tester->synced_data.lock);

aws_global_thread_creator_shutdown_wait_for(10);

aws_s3_library_clean_up();
}

void aws_s3_tester_lock_synced_data(struct aws_s3_tester *tester) {
Expand Down

0 comments on commit 2cd5c53

Please sign in to comment.