VLink  2.3.0
A high-performance communication middleware
vlink::FastBufferManager类 参考final

Loads one FastBufferPluginInterface on first use. 更多...

#include <fast_buffer_manager.h>

vlink::FastBufferManager 的协作图:

Public 成员函数

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

静态 Public 成员函数

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

友元

struct zerocopy::FastBuffer
 
class zerocopy::FastBufferPool
 

详细描述

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.

成员函数说明

◆ get()

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

Returns the lazily constructed process-wide manager.

返回
Singleton reference.

◆ get_interface()

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

Returns the provider owned by this manager.

返回
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.

返回
Whether get_interface() returns a non-null pointer.

友元及相关函数文档

◆ zerocopy::FastBuffer

friend struct zerocopy::FastBuffer
friend

◆ zerocopy::FastBufferPool

friend class zerocopy::FastBufferPool
friend

该类的文档由以下文件生成: