术语 | flsfree |
释义 | FlsFree 语法: C++ BOOL WINAPI FlsFree( __in DWORD dwFlsIndex ); FlsFree功能 发布光纤本地存储(后勤系统)指数,使其可重用。 参数 dwFlsIndex [in] 指数的财务和后勤系统是由FlsAlloc函数分配。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 释放的财务和后勤系统指数释放在当前进程的所有财务和后勤系统的实例索引。释放的财务和后勤系统指数也导致相关的回调例程必须为每个纤维呼吁,如果相应的财务和后勤系统的插槽包含一个非NULL值。 如果该进程的纤维已分配的内存和存储在财务和后勤系统插槽的指针的内存,就应该在调用FlsFree自由内存。该FlsFree函数不会释放内存的地址已与后勤系统有关的财务和后勤指数插槽存储块。预计所有的DLL调用)只在DLL_PROCESS_DETACH的这个函数(如果有的话。 要求: client最低支持Vista 最低支持serverWindows服务器2003 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 纤维 FlsAlloc 进程和线程函数 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==FlsFree Function Releases a fiber local storage (FLS) index, making it available for reuse. Syntax C++ BOOL WINAPI FlsFree( __in DWORD dwFlsIndex ); Parameters dwFlsIndex [in] The FLS index that was allocated by the FlsAlloc function. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError . Remarks Freeing an FLS index frees the index for all instances of FLS in the current process. Freeing an FLS index also causes the associated callback routine to be called for each fiber, if the corresponding FLS slot contains a non-NULL value. If the fibers of the process have allocated memory and stored a pointer to the memory in an FLS slot, they should free the memory before calling FlsFree. The FlsFree function does not free memory blocks whose addresses have been stored in the FLS slots associated with the FLS index. It is expected that DLLs call this function (if at all) only during DLL_PROCESS_DETACH. Requirements Minimum supported clientWindows Vista Minimum supported serverWindows Server 2003 HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also Fibers FlsAlloc Process and Thread Functions Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms682667(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。