发明名称 Performing a wait operation to wait for one or more tasks to complete
摘要 A method of performing a wait operation includes creating a first plurality of tasks and a continuation task. The continuation task represents a second plurality of tasks. The continuation task and each of the tasks in the first plurality have an associated wait handle. The wait handles for the first plurality of tasks and the continuation task are stored in an array. A wait operation is performed on the array, thereby waiting for at least one of the tasks in the first and second pluralities to complete.
申请公布号 US9229788(B2) 申请公布日期 2016.01.05
申请号 US201012732552 申请日期 2010.03.26
申请人 Microsoft Technology Licensing, LLC 发明人 Toub Stephen H.;Hoag Joseph E.;Yildiz Huseyin S.;Shih Danny S.;Liddell Mike;Duffy John
分类号 G06F9/46;G06F9/52 主分类号 G06F9/46
代理机构 代理人 Sullivan Kevin;Chinagudabha Raghu;Minhas Micky
主权项 1. A method of performing a wait operation, comprising: creating a first plurality of tasks and a continuation task, the continuation task representing a second plurality of tasks, the continuation task and the tasks in the first plurality each having an associated wait handle, wherein the continuation task representing the second plurality of tasks is automatically created in response to a determination that a total number of tasks in the first and second pluralities is greater than a fixed system limit; storing the wait handles for the first plurality of tasks and the continuation task in an array without storing a wait handle for any task in the second plurality in the array; performing a wait operation on the array to wait for at least one of the tasks in both of the first and second pluralities to complete; and wherein the creating, storing, and performing are performed by at least one processor.
地址 Redmond WA US