about summary refs log tree commit diff
path: root/src/thread/pthread_mutexattr_setrobust.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_mutexattr_setrobust.c')
-rw-r--r--src/thread/pthread_mutexattr_setrobust.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/thread/pthread_mutexattr_setrobust.c b/src/thread/pthread_mutexattr_setrobust.c
index d0627889..dcfa4cf1 100644
--- a/src/thread/pthread_mutexattr_setrobust.c
+++ b/src/thread/pthread_mutexattr_setrobust.c
@@ -1,28 +1,4 @@
 #include "pthread_impl.h"
-#include <stddef.h>
-
-void __do_private_robust_list()
-{
-	pthread_t self = __pthread_self();
-	volatile void *volatile *p;
-	volatile void *volatile *prev;
-	volatile void *volatile *next;
-	pthread_mutex_t *m;
-
-	prev = &self->robust_list.head;
-	for (p=self->robust_list.head; p&&p!=&self->robust_list.head; p=next) {
-		next = *p;
-		m = (void *)((char *)p - offsetof(pthread_mutex_t, _m_next));
-		if (!(m->_m_type & 128)) {
-			int waiters = m->_m_waiters;
-			*prev = next;
-			int cont = a_swap(&m->_m_lock, self->tid|0x40000000);
-			if (cont < 0 || waiters) __wake(&m->_m_lock, 1, 1);
-		} else {
-			prev = p;
-		}
-	}
-}
 
 int pthread_mutexattr_setrobust(pthread_mutexattr_t *a, int robust)
 {