pthread: add pthread_spin_destroy
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Sep 2010 23:14:49 +0000 (16:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Sep 2010 23:15:07 +0000 (16:15 -0700)
* lib/pthread.in.h (pthread_spin_destroy): New function.

ChangeLog
lib/pthread.in.h

index 307a58a..ec48b91 100644 (file)
--- 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.
index 4dad22a..0fdf9c3 100644 (file)
@@ -186,6 +186,13 @@ pthread_spin_init (pthread_spinlock_t *lock, int pshared)
 }
 
 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.  */