Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudwego/netpoll
/ Alloc
Method
Alloc
poll_default.go:19–23 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
package
netpoll
18
19
func
(p *defaultPoll) Alloc() (operator *FDOperator) {
20
op := p.opcache.alloc()
21
op.poll = p
22
return
op
23
}
24
25
func
(p *defaultPoll) Free(operator *FDOperator) {
26
p.opcache.freeable(operator)
Callers
nothing calls this directly
Calls
1
alloc
Method · 0.80
Tested by
no test coverage detected