bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] pthread: add pthread_spin_destroy


From: Paul Eggert
Subject: [PATCH] pthread: add pthread_spin_destroy
Date: Mon, 20 Sep 2010 16:16:34 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

* lib/pthread.in.h (pthread_spin_destroy): New function.
---
 ChangeLog        |    5 +++++
 lib/pthread.in.h |    7 +++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 307a58a..ec48b91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-20  Paul Eggert  <address@hidden>
+
+       pthread: add pthread_spin_destroy
+       * lib/pthread.in.h (pthread_spin_destroy): New function.
+
 2010-09-19  Bruno Haible  <address@hidden>
 
        gnulib-tool: Fix --help output.
diff --git a/lib/pthread.in.h b/lib/pthread.in.h
index 4dad22a..0fdf9c3 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.  */
-- 
1.7.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]