diff options
author | Roland McGrath <roland@gnu.org> | 2002-05-27 02:50:10 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-05-27 02:50:10 +0000 |
commit | 2d3e2366b453da9b4288c30f3f894fccef1e7914 (patch) | |
tree | 2ada3140e12e0ba146954f447b0be0eb51f83fa0 /libthreads/sync.c | |
parent | 9403905d538fbb6fd33fa8439978a868aef56d9e (diff) | |
download | hurd-2d3e2366b453da9b4288c30f3f894fccef1e7914.tar.gz hurd-2d3e2366b453da9b4288c30f3f894fccef1e7914.tar.bz2 hurd-2d3e2366b453da9b4288c30f3f894fccef1e7914.zip |
2002-05-26 Roland McGrath <roland@frob.com>
Changes merged from CMU MK83a version:
* cthreads.h, options.h: Various cleanups.
* call.c, cthread_data.c, sync.c, mig_support.c: Likewise.
* i386/cthreads.h, i386/thread.c, i386/lock.s: Likewise.
* cthread_internals.h: Add decls for internal functions.
(struct cproc): Use vm_offset_t for stack_base and stack_size members.
Use natural_t for context member.
* cprocs.c: Use prototypes for all defns.
* cthreads.c: Likewise.
(cthread_exit): Cast any_t to integer_t before int.
Diffstat (limited to 'libthreads/sync.c')
-rw-r--r-- | libthreads/sync.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libthreads/sync.c b/libthreads/sync.c index e17280aa..d65eb654 100644 --- a/libthreads/sync.c +++ b/libthreads/sync.c @@ -1,6 +1,6 @@ /* * Mach Operating System - * Copyright (c) 1991,1990,1989 Carnegie Mellon University + * Copyright (c) 1992,1991,1990,1989 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its @@ -26,6 +26,10 @@ /* * HISTORY * $Log: sync.c,v $ + * Revision 2.8 93/01/14 18:06:23 danner + * Converted file to ANSI C. + * [92/12/18 pds] + * * Revision 2.7 92/03/06 14:09:59 rpd * Replaced swtch_pri with yield. * [92/03/06 rpd] @@ -69,8 +73,7 @@ int cthread_spin_count=0; void -spin_lock_solid(p) - register spin_lock_t *p; +spin_lock_solid(register spin_lock_t *p) { while (spin_lock_locked(p) || !spin_try_lock(p)) { #ifdef STATISTICS |