MCPcopy
hub / github.com/uber/aresdb / getDeviceAllocator

Function getDeviceAllocator

query/device_allocator.go:113–118  ·  view source on GitHub ↗

getDeviceAllocator returns singleton deviceAllocator instance.

()

Source from the content-addressed store, hash-verified

111
112// getDeviceAllocator returns singleton deviceAllocator instance.
113func getDeviceAllocator() deviceAllocator {
114 deviceAllocatorOnce.Do(func() {
115 da = newDeviceAllocator()
116 })
117 return da
118}
119
120// deviceAllocate is the wrapper of deviceAllocate of deviceAllocator.
121func deviceAllocate(bytes, device int) devicePointer {

Callers 4

deviceAllocateFunction · 0.85
deviceFreeAndSetNilFunction · 0.85

Calls 1

newDeviceAllocatorFunction · 0.85

Tested by

no test coverage detected