Project
Loading...
Searching...
No Matches
o2::aod::native::ReadBufferPool Class Reference

#include <ReadPlan.h>

Classes

struct  Buffer
 
struct  Unmap
 

Public Member Functions

 ReadBufferPool (size_t maxFreeBytes=0)
 
Buffer get (size_t size)
 The smallest free buffer of at least size bytes, or a new one.
 
void put (Buffer buffer)
 

Detailed Description

Memory for the reads of ReadPlans, kept from one DF to the next: a new plan takes the buffers of the plans which are gone instead of allocating, and faulting in, fresh ones.

Definition at line 28 of file ReadPlan.h.

Constructor & Destructor Documentation

◆ ReadBufferPool()

o2::aod::native::ReadBufferPool::ReadBufferPool ( size_t  maxFreeBytes = 0)
inlineexplicit

Keeps at most maxFreeBytes in free buffers, dropping the largest first; with 0, at most kMaxFree buffers, dropping the smallest first.

Definition at line 43 of file ReadPlan.h.

Member Function Documentation

◆ get()

ReadBufferPool::Buffer o2::aod::native::ReadBufferPool::get ( size_t  size)

The smallest free buffer of at least size bytes, or a new one.

Definition at line 21 of file ReadPlan.cxx.

◆ put()

void o2::aod::native::ReadBufferPool::put ( Buffer  buffer)

Definition at line 52 of file ReadPlan.cxx.


The documentation for this class was generated from the following files: