mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
os/signal: new package
Fixes #71. R=rsc, r https://golang.org/cl/162056
This commit is contained in:
parent
a47a45ec77
commit
b5866494ea
19 changed files with 356 additions and 67 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue