Process-immortal singleton holder for DevTools objects. 更多...
#include <Immortal.hpp>
Public 成员函数 | |
| Immortal () | |
| Immortal (const Immortal &)=delete | |
| Immortal & | operator= (const Immortal &)=delete |
静态 Public 成员函数 | |
| static T & | get () |
| Returns the process-lifetime instance. | |
Public 属性 | |
| T * | value |
详细描述
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.
- 模板参数
-
T Singleton type; constructed on first get(), never destroyed.
在文件 Immortal.hpp 第 19 行定义.
构造及析构函数说明
◆ Immortal() [1/2]
|
inline |
在文件 Immortal.hpp 第 26 行定义.
◆ Immortal() [2/2]
|
delete |
成员函数说明
◆ get()
|
inlinestatic |
Returns the process-lifetime instance.
在文件 Immortal.hpp 第 21 行定义.
引用了 eve::dev::Immortal< T >::value.
被这些函数引用 eve::dev::AiPanel::instance(), eve::dev::ConsolePanel::instance(), eve::dev::McpServer::instance() , 以及 eve::dev::RenderVision::instance().
◆ operator=()
|
delete |
类成员变量说明
◆ value
| T* eve::dev::Immortal< T >::value |
在文件 Immortal.hpp 第 30 行定义.
被这些函数引用 eve::dev::Immortal< T >::get().
该结构体的文档由以下文件生成:
- src/engine/devtools/Immortal.hpp