NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
线程退出回调

线程退出时的回调管理 更多...

线程退出回调 的协作图:

struct  neforce::thread_exit_listener
 线程退出监听器 更多...
class  neforce::thread_exit_notifier
 线程退出通知器 更多...
struct  neforce::thread_exit_elt
 线程退出回调元素 更多...

类型定义

using neforce::thread_exit_callback_t = void (*)(void*)
 线程退出回调类型

函数

void neforce::thread_exit_register (thread_exit_elt *elt, thread_exit_callback_t callback) noexcept
 注册线程退出回调

详细描述

线程退出时的回调管理

函数说明

◆ thread_exit_register()

void neforce::thread_exit_register ( thread_exit_elt * elt,
thread_exit_callback_t callback )
noexcept

注册线程退出回调

参数
elt回调元素指针
callback回调函数

将一个回调函数注册到当前线程的退出回调列表中。 回调函数将在当前线程退出时被调用,参数为elt指针本身。

引用了 thread_exit_register().

被这些函数引用 thread_exit_register().