Mercurial > hg > octave-shane > gnulib-hg
changeset 13706:b236a91e37b9
pthread: add pthread_spin_destroy
* lib/pthread.in.h (pthread_spin_destroy): New function.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 20 Sep 2010 16:14:49 -0700 |
parents | ed2bd36db406 |
children | ebf5df3616fe |
files | ChangeLog lib/pthread.in.h |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-20 Paul Eggert <eggert@cs.ucla.edu> + + pthread: add pthread_spin_destroy + * lib/pthread.in.h (pthread_spin_destroy): New function. + 2010-09-19 Bruno Haible <bruno@clisp.org> gnulib-tool: Fix --help output.
--- 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. */