aboutsummaryrefslogtreecommitdiff
path: root/htl/pt-create.c
diff options
context:
space:
mode:
Diffstat (limited to 'htl/pt-create.c')
-rw-r--r--htl/pt-create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/htl/pt-create.c b/htl/pt-create.c
index ce52ed9f52..36f138b498 100644
--- a/htl/pt-create.c
+++ b/htl/pt-create.c
@@ -262,7 +262,7 @@ failed_starting:
}
__pthread_setid (pthread->thread, NULL);
- atomic_decrement (&__pthread_total);
+ atomic_fetch_add_relaxed (&__pthread_total, -1);
failed_sigstate:
__pthread_sigstate_destroy (pthread);
failed_setup: