I have the following structure of code. Please tell which thread will be suspended by SuspendThread() and also is there a way to determine this in Visual Studio by using debugging.All three functions are in different files.
Res()
{
//code
}
Run()
{
HANDLE hThread = CreateThread();//to execute 'Res()' //in suspended mode
while(condition)
{
//code
if(condition)
{
ResumeThread(hThread);
}
SuspendThread(hThread);
}
WaitForSingleObject(hThread);
}
int main()
{
Run();
//code
}
Aucun commentaire:
Enregistrer un commentaire