Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/prometheus/prometheus
/ length
Method
length
tsdb/chunks/queue.go:136–141 ·
view source on GitHub ↗
length returns number of all jobs in the queue.
()
Source
from the content-addressed store, hash-verified
134
135
// length returns number of all jobs in the queue.
136
func
(q *writeJobQueue) length() int {
137
q.mtx.Lock()
138
defer
q.mtx.Unlock()
139
140
return
q.size
141
}
Callers
1
TestQueuePushPopSingleGoroutine
Function · 0.80
Calls
1
Lock
Method · 0.80
Tested by
1
TestQueuePushPopSingleGoroutine
Function · 0.64