I have the code as follows,
So is it possible to exit the thread from outside that thread please?Code:for (;;) {
if (side == computer)
{
DWORD Id;
HANDLE hThread = CreateThread(0, 0, think, pcon, 0, &Id);
}
if (input == quit)
{
//I want to exit the above thread from outside the thread
}
}
Thanks.