How can i send a worker thread a termination message?
For example: I have in my code the following
CWinThread* mythread = AfxBeginThread(MyProcThread, (LPVOID) this);
UINT MyProcThread(LPARAM lparam)
{
.... // some code here
while (TRUE) {
// here i read a pulse from one pin of the parallel port
.....
}
return 0;
}
For example: I have in my code the following
CWinThread* mythread = AfxBeginThread(MyProcThread, (LPVOID) this);
UINT MyProcThread(LPARAM lparam)
{
.... // some code here
while (TRUE) {
// here i read a pulse from one pin of the parallel port
.....
}
return 0;
}