summaryrefslogtreecommitdiff
path: root/lib/pthread.in.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2010-09-20 16:14:49 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2010-09-20 16:15:07 -0700
commit09ba76e4c6a04d7b19bfe08cef12c29ddd21734c (patch)
treef19345f42cb161709d572a541bc5b39685a6f984 /lib/pthread.in.h
parent92074aac5a16846cd07e964d11275c5ef8e4ac78 (diff)
downloadgnulib-09ba76e4c6a04d7b19bfe08cef12c29ddd21734c.tar.gz
pthread: add pthread_spin_destroy
* lib/pthread.in.h (pthread_spin_destroy): New function.
Diffstat (limited to 'lib/pthread.in.h')
-rw-r--r--lib/pthread.in.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/pthread.in.h b/lib/pthread.in.h
index 4dad22a27a..0fdf9c311e 100644
--- a/lib/pthread.in.h
+++ b/lib/pthread.in.h
@@ -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. */