diff options
author | Ian Lance Taylor <iant@golang.org> | 2017-02-10 14:59:38 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2017-02-13 18:36:28 +0000 |
commit | 3792db518327c685da17ca6c6faa4e1d2da4c33c (patch) | |
tree | 8d2456fa679526c8349a968aaf3cae09524aadfd /src/runtime/sema.go | |
parent | b548eee3d96fc0b6e962a243b28121e1f37ad792 (diff) | |
download | go-3792db518327c685da17ca6c6faa4e1d2da4c33c.tar.gz go-3792db518327c685da17ca6c6faa4e1d2da4c33c.zip |
net: refactor poller into new internal/poll package
This will make it possible to use the poller with the os package.
This is a lot of code movement but the behavior is intended to be
unchanged.
Update #6817.
Update #7903.
Update #15021.
Update #18507.
Change-Id: I1413685928017c32df5654ded73a2643820977ae
Reviewed-on: https://go-review.googlesource.com/36799
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/sema.go')
-rw-r--r-- | src/runtime/sema.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/sema.go b/src/runtime/sema.go index 4046311703..5b9a264ebd 100644 --- a/src/runtime/sema.go +++ b/src/runtime/sema.go @@ -61,8 +61,8 @@ func sync_runtime_Semacquire(addr *uint32) { semacquire(addr, semaBlockProfile) } -//go:linkname net_runtime_Semacquire net.runtime_Semacquire -func net_runtime_Semacquire(addr *uint32) { +//go:linkname poll_runtime_Semacquire internal/poll.runtime_Semacquire +func poll_runtime_Semacquire(addr *uint32) { semacquire(addr, semaBlockProfile) } @@ -76,8 +76,8 @@ func sync_runtime_SemacquireMutex(addr *uint32) { semacquire(addr, semaBlockProfile|semaMutexProfile) } -//go:linkname net_runtime_Semrelease net.runtime_Semrelease -func net_runtime_Semrelease(addr *uint32) { +//go:linkname poll_runtime_Semrelease internal/poll.runtime_Semrelease +func poll_runtime_Semrelease(addr *uint32) { semrelease(addr) } |