SetThreadPriority(hThread, THREAD_PRIORITY_BELOW_NORMAL); 
SetThreadPriority(hThread, THREAD_PRIORITY_TIME_CRITICAL); 
DWORD WINAPI threadfunc2(LPVOID lpV){	int argc,i;	char *argv[2];	HANDLE hThread = NULL;	DWORD ThreadID;	int opend=0;	;	while(opend == 0) {		Sleep(100);		argc = 2;		argv[0] = strdup("timidity");		argv[1] = strdup("-iW");		if ( 0 == timiwp_main_ini(argc, argv)){			rtsyn_init();			hThread=CreateThread(NULL,0,threadfunc,0,0,&ThreadID);			SetPriorityClass(hThread, REALTIME_PRIORITY_CLASS);			SetThreadPriority(hThread, THREAD_PRIORITY_BELOW_NORMAL);			opend = 1;		}		for(i = 0 ; i < 2 ; i++) free(argv[i]);	}	hCalcThread = hThread;		while(stop_rtthread == 0){		Sleep(10);	}	rtsyn_stop_playing();	rtsyn_close();	timiwp_main_close();	stop_rtthread=0;	ExitThread(TRUE);}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/d58fb48ed74eb50a4e65cf45c56bec90d29fd925/timiditydrv.cpp/buggy/windrv/timiditydrv.cpp