|
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 |
| 注册线程退出回调 | |
线程退出时的回调管理
|
noexcept |
注册线程退出回调
| elt | 回调元素指针 |
| callback | 回调函数 |
将一个回调函数注册到当前线程的退出回调列表中。 回调函数将在当前线程退出时被调用,参数为elt指针本身。
被这些函数引用 thread_exit_register().