NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
线程退出回调

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

线程退出回调 的协作图:

struct  at_thread_exit_elt
 线程退出回调元素 更多...

函数

void NEFORCE_API thread_exit_register (at_thread_exit_elt *elt, void(*callback)(void *)) noexcept
 注册线程退出回调

详细描述

线程退出时的回调管理

函数说明

◆ thread_exit_register()

void NEFORCE_API thread_exit_register ( at_thread_exit_elt * elt,
void(* callback )(void *) )
noexcept

注册线程退出回调

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

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