diff options
author | Roland McGrath <roland@gnu.org> | 1995-04-04 21:04:29 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-04-04 21:04:29 +0000 |
commit | 5f54169275587e80c70ca622780ddb239ab8a3c8 (patch) | |
tree | f6252f9a029bfc4c19c7fb4f167ec9cf18a3045e /libthreads | |
parent | 3a4811978a9621fabc2212b1a77d251f7ab6cfcc (diff) |
(mutex_lock_solid, mutex_unlock_solid): Renamed to __*.
(_cthread_mutex_lock_routine, _cthread_mutex_unlock_routine): Variables
removed.
Diffstat (limited to 'libthreads')
-rw-r--r-- | libthreads/cprocs.c | 17 |
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 |