os/signal: new package

Fixes #71.

R=rsc, r
https://golang.org/cl/162056
This commit is contained in:
David Symonds 2009-12-15 18:21:29 -08:00 committed by Russ Cox
parent a47a45ec77
commit b5866494ea
19 changed files with 356 additions and 67 deletions

View file

@ -527,12 +527,9 @@ gosched(void)
// Record that it's not using the cpu anymore.
// This is called only from the go syscall library, not
// from the low-level system calls used by the runtime.
// The "arguments" are syscall.Syscall's stack frame
void
runtime·entersyscall(uint64 callerpc, int64 trap)
runtime·entersyscall(void)
{
USED(callerpc, trap);
lock(&sched);
if(sched.predawn) {
unlock(&sched);