# HG changeset patch # User Paul Eggert # Date 1285024489 25200 # Node ID b236a91e37b97edfb7f5341840668c4be082934d # Parent ed2bd36db4064b78db2e19889ae93325a1efd8bc pthread: add pthread_spin_destroy * lib/pthread.in.h (pthread_spin_destroy): New function. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-20 Paul Eggert + + pthread: add pthread_spin_destroy + * lib/pthread.in.h (pthread_spin_destroy): New function. + 2010-09-19 Bruno Haible gnulib-tool: Fix --help output. diff --git a/lib/pthread.in.h b/lib/pthread.in.h --- a/lib/pthread.in.h +++ b/lib/pthread.in.h @@ -186,6 +186,13 @@ } static inline int +pthread_spin_destroy (pthread_spinlock_t *lock) +{ + /* LOCK is never seriously used. */ + return 0; +} + +static inline int pthread_spin_lock (pthread_spinlock_t *lock) { /* Only one thread, so it always gets the lock. */