Lines Matching defs:cnt
168 size_t cnt = 0;
192 DWORD rc = ::WaitForMultipleObjects((DWORD)(1 + cnt + cntSpawned),
210 else if (rc > WAIT_OBJECT_0 && rc <= (WAIT_OBJECT_0 + cnt))
216 else if (rc > WAIT_ABANDONED_0 && rc <= (WAIT_ABANDONED_0 + cnt))
222 else if (rc > WAIT_OBJECT_0 + cnt && rc <= (WAIT_OBJECT_0 + cntSpawned))
225 (spawnedMachines[rc - WAIT_OBJECT_0 - cnt - 1])->
233 for (size_t i = 1 + cnt; i < 1 + cnt + cntSpawned; ++i)
243 cnt = 0;
251 AssertMsgBreak((1 + cnt) <= MAXIMUM_WAIT_OBJECTS,
266 handles[1 + cnt] = ipcSem;
267 ++cnt;
273 LogFlowFunc(("UPDATE: direct session count = %d\n", cnt));
284 AssertMsgBreak((1 + cnt + cntSpawned) <= MAXIMUM_WAIT_OBJECTS,
299 handles[1 + cnt + cntSpawned] = ph;
316 for (size_t i = 1 + cnt; i < 1 + cnt + cntSpawned; ++i)
369 if (cnt > 0)
380 Assert(semId >= 0 && semId < cnt);
381 if (semId >= 0 && semId < cnt)
399 for (size_t i = 0; i < cnt; ++i)
409 Assert(i >= 0 && i < cnt);
410 if (i >= 0 && i < cnt)
454 cnt = 0;
461 AssertMsg(cnt <= 64 /* according to PMREF */,
463 cnt));
477 handles[cnt].hsemCur = (HSEM)ipcSem;
478 handles[cnt].ulUser = cnt;
479 ++cnt;
485 LogFlowFunc(("UPDATE: direct session count = %d\n", cnt));
487 if (cnt > 0)
490 APIRET arc = ::DosCreateMuxWaitSem(NULL, &muxSem, cnt,
595 cnt = machines.size();
596 LogFlowFunc(("UPDATE: direct session count = %d\n", cnt));
620 for (size_t i = 0; i < cnt; ++i)
767 NOREF(cnt);