NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
neforce::thread_exit_notifier类 参考

线程退出通知器 更多...

#include <thread_exit_notifier.hpp>

静态 Public 成员函数

static void subscribe (thread_exit_listener *listener)
 注册线程退出监听器
static void unsubscribe (thread_exit_listener *listener)
 注销线程退出监听器

详细描述

线程退出通知器

利用 thread_local 对象的析构函数在线程退出时通知所有注册的监听器。 每个线程拥有独立的 thread_exit_notifier 实例。

在文件 thread_exit_notifier.hpp38 行定义.

成员函数说明

◆ subscribe()

void neforce::thread_exit_notifier::subscribe ( thread_exit_listener * listener)
static

注册线程退出监听器

参数
listener要注册的监听器

◆ unsubscribe()

void neforce::thread_exit_notifier::unsubscribe ( thread_exit_listener * listener)
static

注销线程退出监听器

参数
listener要注销的监听器

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