x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
tss_hooks.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\thread\detail\tss_hooks.hpp
旋转
特效
属性
历史版本
// (C) Copyright Michael Glassford 2004. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #if !defined(BOOST_TLS_HOOKS_HPP) #define BOOST_TLS_HOOKS_HPP #include
#if defined(BOOST_HAS_WINTHREADS) typedef void (__cdecl *thread_exit_handler)(void); extern "C" BOOST_THREAD_DECL int at_thread_exit( thread_exit_handler exit_handler ); //Add a function to the list of functions that will //be called when a thread is about to exit. //Currently only implemented for Win32, but should //later be implemented for all platforms. //Used by Win32 implementation of Boost.Threads //tss to perform cleanup. //Like the C runtime library atexit() function, //which it mimics, at_thread_exit() returns //zero if successful and a nonzero //value if an error occurs. #endif //defined(BOOST_HAS_WINTHREADS) #if defined(BOOST_HAS_WINTHREADS) extern "C" BOOST_THREAD_DECL void on_process_enter(void); //Function to be called when the exe or dll //that uses Boost.Threads first starts //or is first loaded. //Should be called only before the first call to //on_thread_enter(). //Called automatically by Boost.Threads when //a method for doing so has been discovered. //May be omitted; may be called multiple times. extern "C" BOOST_THREAD_DECL void on_process_exit(void); //Function to be called when the exe or dll //that uses Boost.Threads first starts //or is first loaded. //Should be called only after the last call to //on_exit_thread(). //Called automatically by Boost.Threads when //a method for doing so has been discovered. //Must not be omitted; may be called multiple times. extern "C" BOOST_THREAD_DECL void on_thread_enter(void); //Function to be called just after a thread starts //in an exe or dll that uses Boost.Threads. //Must be called in the context of the thread //that is starting. //Called automatically by Boost.Threads when //a method for doing so has been discovered. //May be omitted; may be called multiple times. extern "C" BOOST_THREAD_DECL void on_thread_exit(void); //Function to be called just be fore a thread ends //in an exe or dll that uses Boost.Threads. //Must be called in the context of the thread //that is ending. //Called automatically by Boost.Threads when //a method for doing so has been discovered. //Must not be omitted; may be called multiple times. extern "C" void tss_cleanup_implemented(void); //Dummy function used both to detect whether tss cleanup //cleanup has been implemented and to force //it to be linked into the Boost.Threads library. #endif //defined(BOOST_HAS_WINTHREADS) #endif //!defined(BOOST_TLS_HOOKS_HPP)
tss_hooks.hpp
网页地址
文件地址
上一页
6/6 下一页
下载
( 3 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.