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 307a58ad681c1703c704e94dc4a88a219783ce56..ec48b91ff7fb6c9b275309390c7fa70da1ed8c82 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 4dad22a27ac3748512747d8874777e13e043756e..0fdf9c311ea27fa605afade4a103e08c93262a05 100644 (file)
@@ -185,6 +185,13 @@ pthread_spin_init (pthread_spinlock_t *lock, int pshared)
   return 0;
 }
 
+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)
 {