projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92074aa
)
pthread: add pthread_spin_destroy
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 20 Sep 2010 23:14:49 +0000
(16:14 -0700)
committer
Paul 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
patch
|
blob
|
history
lib/pthread.in.h
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
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.
diff --git
a/lib/pthread.in.h
b/lib/pthread.in.h
index 4dad22a27ac3748512747d8874777e13e043756e..0fdf9c311ea27fa605afade4a103e08c93262a05 100644
(file)
--- a/
lib/pthread.in.h
+++ b/
lib/pthread.in.h
@@
-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)
{