diff options
Diffstat (limited to 'pthread/pt-dealloc.c')
-rw-r--r-- | pthread/pt-dealloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pthread/pt-dealloc.c b/pthread/pt-dealloc.c index 806e078..1807a1d 100644 --- a/pthread/pt-dealloc.c +++ b/pthread/pt-dealloc.c @@ -22,7 +22,7 @@ #include <pt-internal.h> -#include <bits/pt-atomic.h> +#include <atomic.h> /* List of thread structures corresponding to free thread IDs. */ extern struct __pthread *__pthread_free_threads; @@ -35,7 +35,7 @@ __pthread_dealloc (struct __pthread *pthread) { assert (pthread->state != PTHREAD_TERMINATED); - if (! __atomic_dec_and_test (&pthread->nr_refs)) + if (! atomic_decrement_and_test (&pthread->nr_refs)) return; /* Withdraw this thread from the thread ID lookup table. */ |