VLink  2.3.0
A high-performance communication middleware
vlink::FastBufferManager Class Referencefinal

Loads one FastBufferPluginInterface on first use. More...

#include <fast_buffer_manager.h>

Collaboration diagram for vlink::FastBufferManager:

Public Member Functions

bool is_valid () const
 Reports whether the built-in or loaded provider is available. More...
 
FastBufferPluginInterface * get_interface () const
 Returns the provider owned by this manager. More...
 

Static Public Member Functions

static FastBufferManager & get ()
 Returns the lazily constructed process-wide manager. More...
 

Friends

struct zerocopy::FastBuffer
 
class zerocopy::FastBufferPool
 

Detailed Description

Loads one FastBufferPluginInterface on first use.

Reads VLINK_FASTBUFFER_PLUGIN once. Empty or missing values select ordinary CPU memory and shm selects shared CPU memory. Explicit plugin load failures do not select CPU storage or retry. Names and paths follow Plugin.

Member Function Documentation

◆ get()

static FastBufferManager& vlink::FastBufferManager::get ( )
static

Returns the lazily constructed process-wide manager.

Returns
Singleton reference.

◆ get_interface()

FastBufferPluginInterface* vlink::FastBufferManager::get_interface ( ) const

Returns the provider owned by this manager.

Returns
Borrowed provider pointer, or nullptr when unavailable.

◆ is_valid()

bool vlink::FastBufferManager::is_valid ( ) const

Reports whether the built-in or loaded provider is available.

Returns
Whether get_interface() returns a non-null pointer.

Friends And Related Function Documentation

◆ zerocopy::FastBuffer

friend struct zerocopy::FastBuffer
friend

◆ zerocopy::FastBufferPool

friend class zerocopy::FastBufferPool
friend

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