Fixes potential race with SCPs blocking (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 19 Oct 2012 23:00:05 +0000 (16:00 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 19 Oct 2012 23:00:05 +0000 (16:00 -0700)
If we ever received an event/notif after registering the ev_q and before
yielding, that event would cause us to clear notif_pending.  This would
cause us to sleep permanently in yield, since we already both received
the 'syscall done' event and marked its reception.

If you want to write similar code, the important thing was that we need
notifs disabled before we check the syscall's SC_DONE.


No differences found