[an error occurred while processing this directive]
|
class MThread
{
private:
static UINT WAPI __Exe__ (LPVOID); //
virtual int WAPI Execute (void) ; // поточная процедура
.
.
.
};
.
.
//-------------------------------------------------------------
int __stdcall MThread::Execute (void)
{
for (;;) {if ( GetTerminate () ) break;}
return 0;
}
// ---------------------------------------------------
UINT WAPI MThread::__Exe__(LPVOID ClPtr)
{
_endthreadex (((MThread *)ClPtr)->Execute ());
return 0;
}
// ---------------------------------------------------