mirror of
https://github.com/golang/go
synced 2024-11-19 17:04:41 -07:00
internal/poll: fix error in increfAndClose documentation
Change-Id: I0c387b6286bc18fd00c6ac4e42bdf175cf89ccb1 Reviewed-on: https://go-review.googlesource.com/83155 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
043f112e52
commit
8c227765f7
@ -65,7 +65,7 @@ func (mu *fdMutex) incref() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// increfAndClose sets the state of mu to closed.
|
// increfAndClose sets the state of mu to closed.
|
||||||
// It reports whether there is no remaining reference.
|
// It returns false if the file was already closed.
|
||||||
func (mu *fdMutex) increfAndClose() bool {
|
func (mu *fdMutex) increfAndClose() bool {
|
||||||
for {
|
for {
|
||||||
old := atomic.LoadUint64(&mu.state)
|
old := atomic.LoadUint64(&mu.state)
|
||||||
|
Loading…
Reference in New Issue
Block a user