From 5f54169275587e80c70ca622780ddb239ab8a3c8 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 4 Apr 1995 21:04:29 +0000 Subject: (mutex_lock_solid, mutex_unlock_solid): Renamed to __*. (_cthread_mutex_lock_routine, _cthread_mutex_unlock_routine): Variables removed. --- libthreads/cprocs.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'libthreads') 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 -- cgit v1.2.3