ExpWorkQueueInitializeWithMinimumThreads

INT64 __fastcall ExpWorkQueueInitializeWithMinimumThreads(
        INT64 a1,
        INT64 a2,
        INT64 a3,
        INT64 a4,
        INT64 a5,
        UINT64 a6,
        UINT16 *Queue){
  int v8; 
  INT64 result; 
  UINT64 v10; 
  LODWORD(v10) = a6;
  ExpWorkQueueInitialize(a1, a2, a3, a4, a5, v10);
  v8 = 0;
  if( 2 * *(_DWORD *)(a1 + 716) <= 0 )
    return 0i64;
  while( 1 )
  {
    result = ExpCreateWorkerThread((_ENODE *)a1, (_EX_WORK_QUEUE *)Queue);
    if( (int)result < 0 )
      break;
    if( ++v8 >= (2 * *(_DWORD *)(a1 + 716)) >> 1 )
      return 0i64;
  }
  return result;
}

Referenced by:

ExpPartitionCreatePoolInternal