Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue-1006: fix cv signal outside of lock #1008

Merged
merged 3 commits into from
Mar 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/thread_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ void aws_thread_increment_unjoined_count(void) {
void aws_thread_decrement_unjoined_count(void) {
aws_mutex_lock(&s_managed_thread_lock);
--s_unjoined_thread_count;
aws_mutex_unlock(&s_managed_thread_lock);
aws_condition_variable_notify_one(&s_managed_thread_signal);
aws_mutex_unlock(&s_managed_thread_lock);
}

size_t aws_thread_get_managed_thread_count(void) {
Expand Down