summary refs log tree commit diff
path: root/linuxthreads/spinlock.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-03 07:29:27 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-03 07:29:27 +0000
commit139a4d957a49107e0528e60913f3eb565c691da3 (patch)
tree0d37efcd9c246629ad935e631efb83006eed6faf /linuxthreads/spinlock.h
parentaaf688e85f11a2e6d2fc7b9afbf81e15e146f766 (diff)
downloadglibc-139a4d957a49107e0528e60913f3eb565c691da3.tar.gz
glibc-139a4d957a49107e0528e60913f3eb565c691da3.tar.xz
glibc-139a4d957a49107e0528e60913f3eb565c691da3.zip
Update.
2000-08-03  Ulrich Drepper  <drepper@redhat.com>

	* iconvdata/big5.c: Updated.
	Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
Diffstat (limited to 'linuxthreads/spinlock.h')
-rw-r--r--linuxthreads/spinlock.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/linuxthreads/spinlock.h b/linuxthreads/spinlock.h
index 6d3d3433f9..f88e8f3b0e 100644
--- a/linuxthreads/spinlock.h
+++ b/linuxthreads/spinlock.h
@@ -209,3 +209,18 @@ static inline long atomic_decrement(struct pthread_atomic *pa)
 }
 
 #define ATOMIC_INITIALIZER { 0, 0 }
+
+
+static inline void
+__pthread_set_own_extricate_if(pthread_descr self, pthread_extricate_if *peif)
+{
+#if 0
+  __pthread_lock(THREAD_GETMEM(self, p_lock), self);
+  THREAD_SETMEM(self, p_extricate, peif);
+  __pthread_unlock(THREAD_GETMEM (self, p_lock));
+#else
+  /* I don't think that getting the lock is necessary.  All we do is an
+     atomic write.  */
+  THREAD_SETMEM(self, p_extricate, peif);
+#endif
+}