网站首页  词典首页

请输入您要查询的函数:

 

术语 avrtwaitonthreadorderinggroup
释义 AvRtWaitOnThreadOrderingGroup
语法:
C++
BOOL WINAPI AvRtWaitOnThreadOrderingGroup(
__in HANDLE Context
);
AvRtWaitOnThreadOrderingGroup功能
使集团的订货客户端线程的线程等待,直到他们应该执行。
参数
语境 [in]
阿上下文句柄。这种处理是由AvRtCreateThreadOrderingGroup或AvRtJoinThreadOrderingGroup函数返回。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
当此函数返回时,线程应该完成其处理期间,然后再次调用该函数。
如果线程在未能完成其处理的时间超时间隔由母公司在创建线程组指定的,它将被删除从订货组线程。因此,当线程完成其处理循环,下一次调用AvRtWaitOnThreadOrderingGroup失败,最后错误代码设置为ERROR_ACCESS_DENIED。
如果线程组被删除排序在等待期间,此功能最终超时并返回ERROR_ACCESS_DENIED。
实例

#include
#include
#include
#pragma comment(lib, "Avrt.lib")
void main()
{
 HANDLE Context;
 while(AvRtWaitOnThreadOrderingGroup(Context))
 {
  // Complete task for this period.
 }
}
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderAvrt.h
LibraryAvrt.lib
DLLAvrt.dll
参见
螺纹订购服务
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==AvRtWaitOnThreadOrderingGroup Function
Enables client threads of a thread ordering group to wait until they should execute.
Syntax
C++
BOOL WINAPI AvRtWaitOnThreadOrderingGroup(
__in HANDLE Context
);
Parameters
Context [in]
A context handle. This handle is returned by the AvRtCreateThreadOrderingGroup or AvRtJoinThreadOrderingGroup 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
When this function returns, the thread should complete its processing for the period and then call the function again.
If the thread fails to complete its processing during the time-out interval specified by the parent thread when creating the group, it is deleted from the thread ordering group. Therefore, when the thread finishes its processing loop, the next call to AvRtWaitOnThreadOrderingGroup fails and the last error code is set to ERROR_ACCESS_DENIED.
If the thread ordering group is deleted during the wait, this function eventually times out and return ERROR_ACCESS_DENIED.
Examples
#include
#include
#include
#pragma comment(lib, "Avrt.lib")
void main()
{
 HANDLE Context;
 while(AvRtWaitOnThreadOrderingGroup(Context))
 {
  // Complete task for this period.
 }
}
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderAvrt.h
LibraryAvrt.lib
DLLAvrt.dll
See Also
Thread Ordering Service
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms681971(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:28:41