summaryrefslogtreecommitdiff
path: root/libthreads
diff options
context:
space:
mode:
Diffstat (limited to 'libthreads')
-rw-r--r--libthreads/cprocs.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/libthreads/cprocs.c b/libthreads/cprocs.c
index 4656e8d8..e1503ca2 100644
--- a/libthreads/cprocs.c
+++ b/libthreads/cprocs.c
@@ -25,7 +25,10 @@
*/
/*
* HISTORY
- * $Log: cprocs.c,v $
+ * $Log: cprocs.c,v $
+ * Revision 1.3 1994/05/19 04:55:30 roland
+ * entered into RCS
+ *
* Revision 2.15 92/03/06 14:09:31 rpd
* Replaced swtch_pri with yield.
* [92/03/06 rpd]
@@ -846,9 +849,9 @@ cthread_yield()
*/
void
-mutex_lock_solid(m)
- register mutex_t m;
+__mutex_lock_solid(void *ptr)
{
+ register mutex_t m = ptr;
register cproc_t p = cproc_self();
register int queued;
register int tried = 0;
@@ -892,9 +895,9 @@ mutex_lock_solid(m)
}
void
-mutex_unlock_solid(m)
- register mutex_t m;
+__mutex_unlock_solid(void *ptr)
{
+ register mutex_t m = ptr;
register cproc_t new;
if (!spin_try_lock(&m->held))
@@ -908,10 +911,6 @@ mutex_unlock_solid(m)
}
}
-/* The GNU C library's internal locking functions use these variables. */
-void (*_cthread_mutex_lock_routine) (struct mutex *) = mutex_lock_solid;
-void (*_cthread_mutex_unlock_routine) (struct mutex *) = mutex_unlock_solid;
-
/*
* Use instead of mach_msg in a multi-threaded server so as not