MCPcopy
hub / github.com/grpc/grpc-go / drainWait

Method drainWait

internal/profiling/buffer/buffer.go:61–65  ·  view source on GitHub ↗

drainWait blocks the caller until all Pushes on this queue are complete.

()

Source from the content-addressed store, hash-verified

59
60// drainWait blocks the caller until all Pushes on this queue are complete.
61func (q *queue) drainWait() {
62 for atomic.LoadUint32(&q.acquired) != atomic.LoadUint32(&q.written) {
63 runtime.Gosched()
64 }
65}
66
67// A queuePair has two queues. At any given time, Pushes go into the queue
68// referenced by queuePair.q. The active queue gets switched when there's a

Callers 1

DrainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected