示例#1
0
func (pd *pollDesc) Evict() bool {
	pd.closing = true
	if pd.fd != nil {
		syscall.StopIO(pd.fd.sysfd)
	}
	return false
}
示例#2
0
func (pd *pollDesc) evict() {
	pd.closing = true
	if pd.fd != nil {
		syscall.StopIO(pd.fd.sysfd)
		runtime.KeepAlive(pd.fd)
	}
}
示例#3
0
文件: fd_poll_nacl.go 项目: sreis/go
func (pd *pollDesc) Evict() {
	pd.closing = true
	if pd.fd != nil {
		syscall.StopIO(pd.fd.sysfd)
	}
}