1 Star 4 Fork 3

github/netpoll

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
docs
guide
reference
design_cn.md
design_en.md
explain.md
mux
.gitignore
.licenserc.yaml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CREDITS
LICENSE
NOTICE
README.md
README_CN.md
connection.go
connection_errors.go
connection_errors_test.go
connection_impl.go
connection_lock.go
connection_onevent.go
connection_reactor.go
connection_test.go
fd_operator.go
fd_operator_cache.go
fd_operator_cache_test.go
go.mod
go.sum
lint.sh
net_dialer.go
net_dialer_test.go
net_listener.go
net_listener_test.go
net_netfd.go
net_netfd_conn.go
net_polldesc.go
net_polldesc_test.go
net_sock.go
net_tcpsock.go
net_unixsock.go
netpoll.go
netpoll_options.go
netpoll_server.go
netpoll_test.go
nocopy.go
nocopy_linkbuffer.go
nocopy_linkbuffer_race.go
nocopy_linkbuffer_test.go
nocopy_readwriter.go
nocopy_readwriter_test.go
poll.go
poll_default_bsd.go
poll_default_linux.go
poll_loadbalance.go
poll_manager.go
poll_manager_test.go
poll_race_bsd.go
poll_race_linux.go
poll_test.go
sys_epoll_linux.go
sys_epoll_linux_arm64.go
sys_exec.go
sys_exec_test.go
sys_keepalive_darwin.go
sys_keepalive_openbsd.go
sys_keepalive_unix.go
sys_sendmsg_bsd.go
sys_sendmsg_linux.go
sys_sockopt_bsd.go
sys_sockopt_linux.go
sys_zerocopy_bsd.go
sys_zerocopy_linux.go
克隆/下载
explain.md 387 Bytes
一键复制 编辑 原始数据 按行查看 历史
Hchen 提交于 4年前 . release: netpoll v0.0.1

DATA RACE EXPLAIN

Netpoll declare different files by //+build !race and //+build race to avoid DATA RACE detection in some code.

The reason is that the epoll uses unsafe.Pointer to access the struct pointer, in order to improve performance. This operation is beyond the detection range of the race detector, so it is mistaken for data race, but not code bug actually.

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/markd/netpoll.git
git@gitee.com:markd/netpoll.git
markd
netpoll
netpoll
main

搜索帮助