#include "stdafx.h" #include "MultiCommon_test.h" #ifdef _MUTATE #include "SundriesFunc.h" #include int s_nThreadCount = 1; int **s_nThreadSessionMatchingTable = NULL; std::vector s_dwVecThreadMatchingTable; int *s_nCurrentSessionIndex = NULL; DWORD s_dwCurrentThreadID = 0; void InitializeMultiThread( int nThreadCount ) { if( s_nThreadSessionMatchingTable != NULL ) return; s_nThreadCount = nThreadCount; s_nThreadSessionMatchingTable = new int *[nThreadCount]; int nThreadPerSessionCount = MAX_SESSION_COUNT / nThreadCount; for( int i=0; i