Fri May 3 13:32:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
authorroland <roland>
Sat, 4 May 1996 09:24:20 +0000 (09:24 +0000)
committerroland <roland>
Sat, 4 May 1996 09:24:20 +0000 (09:24 +0000)
commit26353214f15ccc986f9d141bed03b5a020be15ad
treee1301fa965e1732bff28726c19085b765e8e16f9
parent51a99c1bb827f25158618f285fa0c9e5bc34e30b
Fri May  3 13:32:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* hurd/hurd/signal.h (struct hurd_sigstate): Replace critical section
  flag with a spin lock.
(_hurd_critical_section_lock): Use spin_try_lock on that to see if we
  get it.  No need to take SS->lock at all.
(_hurd_critical_section_unlock): Unlock SS->critical_section_lock
instead of clearing the old flag member.
* hurd/hurdsig.c (_hurd_internal_post_signal): Use spin_lock_locked to
test the critical section state.
* hurd/hurd/signal.h (_hurd_critical_section_unlock): Pass sigcode arg
to msg_sig_post.
hurd/hurd/signal.h