void
siginit(void)
{
- noteclear(&sig);
+ runtime_noteclear(&sig);
}
// Called from sighandler to send a signal back out of the signal handling thread.
// Added to queue.
// Only send a wakeup for the first signal in each round.
if(mask == 0)
- notewakeup(&sig);
+ runtime_notewakeup(&sig);
break;
}
}
// Called to receive a bitmask of queued signals.
func Sigrecv() (m uint32) {
// runtime·entersyscall();
- notesleep(&sig);
+ runtime_notesleep(&sig);
// runtime·exitsyscall();
- noteclear(&sig);
+ runtime_noteclear(&sig);
for(;;) {
m = sig.mask;
if(runtime_cas(&sig.mask, m, 0))