载入中...
搜索中...
未找到
eve::dev::Immortal< T > 模板结构体 参考

Process-immortal singleton holder for DevTools objects. 更多...

#include <Immortal.hpp>

Public 成员函数

 Immortal ()
 
 Immortal (const Immortal &)=delete
 
Immortaloperator= (const Immortal &)=delete
 

静态 Public 成员函数

static T & get ()
 Returns the process-lifetime instance.
 

Public 属性

T * value
 

详细描述

template<typename T>
struct eve::dev::Immortal< T >

Process-immortal singleton holder for DevTools objects.

AiPanel / ConsolePanel / McpServer / RenderVision are deliberately never destroyed: McpServer's stdio reader thread can outlive normal teardown (it is detached when reading from stdin), and the singletons call into each other from request handling. Destroying any of them could let that thread lock a destroyed mutex (macOS libc++ aborts). This holder makes the immortal-lifetime contract explicit and centralized instead of scattering raw new leaks through every accessor.

模板参数
TSingleton type; constructed on first get(), never destroyed.

在文件 Immortal.hpp19 行定义.

构造及析构函数说明

◆ Immortal() [1/2]

template<typename T >
eve::dev::Immortal< T >::Immortal ( )
inline

在文件 Immortal.hpp26 行定义.

◆ Immortal() [2/2]

template<typename T >
eve::dev::Immortal< T >::Immortal ( const Immortal< T > &  )
delete

成员函数说明

◆ get()

template<typename T >
static T & eve::dev::Immortal< T >::get ( )
inlinestatic

Returns the process-lifetime instance.

在文件 Immortal.hpp21 行定义.

引用了 eve::dev::Immortal< T >::value.

被这些函数引用 eve::dev::AiPanel::instance(), eve::dev::ConsolePanel::instance(), eve::dev::McpServer::instance() , 以及 eve::dev::RenderVision::instance().

◆ operator=()

template<typename T >
Immortal & eve::dev::Immortal< T >::operator= ( const Immortal< T > &  )
delete

类成员变量说明

◆ value

template<typename T >
T* eve::dev::Immortal< T >::value

在文件 Immortal.hpp30 行定义.

被这些函数引用 eve::dev::Immortal< T >::get().


该结构体的文档由以下文件生成: