MCPcopy
hub / github.com/google/gvisor / Add

Method Add

pkg/aio/aio.go:49–49  ·  view source on GitHub ↗

Add enqueues an inflight operation. Note that some Queue implementations may not begin execution of new Requests until the following call to Wait. Preconditions: - The current number of inflight operations < Cap().

(req Request)

Source from the content-addressed store, hash-verified

47 // Preconditions:
48 // - The current number of inflight operations < Cap().
49 Add(req Request)
50
51 // Wait blocks until at least minCompletions inflight operations have
52 // completed, then appends all completed inflight operations to cs and

Callers 15

TestAddFunction · 0.65
TestRemoveFunction · 0.65
TestEmptyFunction · 0.65
BenchmarkSleeperPingPongFunction · 0.65
BenchmarkChannelPingPongFunction · 0.65
makeFeatureSetFunction · 0.65
TestAddFunction · 0.65
StartServingMethod · 0.65
runTurnMethod · 0.65

Implementers 2

LinuxQueuepkg/aio/aio_linux_unsafe.go
GoQueuepkg/aio/aio.go

Calls

no outgoing calls

Tested by 15

TestAddFunction · 0.52
TestRemoveFunction · 0.52
TestEmptyFunction · 0.52
BenchmarkSleeperPingPongFunction · 0.52
BenchmarkChannelPingPongFunction · 0.52
makeFeatureSetFunction · 0.52
TestAddFunction · 0.52
TestFormatFunction · 0.52
newFileFDFunction · 0.52