Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/redis/go-redis
/ newWantConnQueue
Function
newWantConnQueue
internal/pool/want_conn.go:76–80 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
74
}
75
76
func
newWantConnQueue() *wantConnQueue {
77
return
&wantConnQueue{
78
items: make([]*wantConn, 0),
79
}
80
}
81
82
func
(q *wantConnQueue) enqueue(w *wantConn) {
83
q.mu.Lock()
Callers
15
NewConnPool
Function · 0.85
TestWantConnQueue_newWantConnQueue
Function · 0.85
TestWantConnQueue_enqueue_dequeue
Function · 0.85
TestWantConnQueue_ConcurrentAccess
Function · 0.85
TestWantConnQueue_ThreadSafety
Function · 0.85
BenchmarkWantConnQueue_Enqueue
Function · 0.85
BenchmarkWantConnQueue_Dequeue
Function · 0.85
BenchmarkWantConnQueue_EnqueueDequeue
Function · 0.85
TestWantConnQueue_dropFrontDone_EmptyQueue
Function · 0.85
TestWantConnQueue_dropFrontDone_AllDone
Function · 0.85
TestWantConnQueue_dropFrontDone_NoneDone
Function · 0.85
TestWantConnQueue_dropFrontDone_PartialDone
Function · 0.85
Calls
no outgoing calls
Tested by
15
TestWantConnQueue_newWantConnQueue
Function · 0.68
TestWantConnQueue_enqueue_dequeue
Function · 0.68
TestWantConnQueue_ConcurrentAccess
Function · 0.68
TestWantConnQueue_ThreadSafety
Function · 0.68
BenchmarkWantConnQueue_Enqueue
Function · 0.68
BenchmarkWantConnQueue_Dequeue
Function · 0.68
BenchmarkWantConnQueue_EnqueueDequeue
Function · 0.68
TestWantConnQueue_dropFrontDone_EmptyQueue
Function · 0.68
TestWantConnQueue_dropFrontDone_AllDone
Function · 0.68
TestWantConnQueue_dropFrontDone_NoneDone
Function · 0.68
TestWantConnQueue_dropFrontDone_PartialDone
Function · 0.68
TestWantConnQueue_dropFrontDone_SingleElement
Function · 0.68