MCPcopy
hub / github.com/smallnest/1m-go-tcp-server / Close

Method Close

8_server_workerpool/worker_pool.go:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func (p *pool) Close() {
30 p.mu.Lock()
31 p.closed = true
32 close(p.done)
33 close(p.taskQueue)
34 p.mu.Unlock()
35}
36
37func (p *pool) addTask(conn net.Conn) {
38 p.mu.Lock()

Callers 15

mainFunction · 0.80
mainFunction · 0.80
handleConnFunction · 0.80
mainFunction · 0.80
handleConnFunction · 0.80
mainFunction · 0.80
handleConnFunction · 0.80
mainFunction · 0.80
handleConnFunction · 0.80
startEpollFunction · 0.80
startFunction · 0.80
mkClientFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected