MCPcopy
hub / github.com/rclone/rclone / acquire

Method acquire

lib/pool/pool.go:207–213  ·  view source on GitHub ↗

acquire mem bytes of memory for the user

(mem int64)

Source from the content-addressed store, hash-verified

205
206// acquire mem bytes of memory for the user
207func (bp *Pool) acquire(mem int64) error {
208 if totalMemory == nil {
209 return nil
210 }
211 ctx := context.Background()
212 return totalMemory.Acquire(ctx, mem)
213}
214
215// release mem bytes of memory from the user
216func (bp *Pool) release(mem int64) {

Callers 1

GetNMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected