diff options
Diffstat (limited to 'pthread/pt-exit.c')
-rw-r--r-- | pthread/pt-exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pthread/pt-exit.c b/pthread/pt-exit.c index a23a540..14e560e 100644 --- a/pthread/pt-exit.c +++ b/pthread/pt-exit.c @@ -23,7 +23,7 @@ #include <pt-internal.h> -#include <bits/pt-atomic.h> +#include <atomic.h> /* Terminate the current thread and make STATUS available to any @@ -49,7 +49,7 @@ __pthread_exit (void *status) /* Decrease the number of threads. We use an atomic operation to make sure that only the last thread calls `exit'. */ - if (__atomic_dec_and_test (&__pthread_total)) + if (atomic_decrement_and_test (&__pthread_total)) /* We are the last thread. */ exit (0); |