Skip to content

Commit

Permalink
issue-1006: fix cv signal outside of lock (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeking3 authored Mar 31, 2023
1 parent d4dced1 commit cfaa904
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit cfaa904

Please sign in to comment.