1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| void __fastcall TMyTimerThread::Execute()
{
// TRACE("Methode Name " << "TMyTimerThread::Execute() " << "Id " << this->ThreadID << " Entry at " <<__TIME__);
Priority = FThreadPriority;
while(!Terminated)
{
if (FEnabled)
{
WaitForSingleObject(MyHandle,FInterval);
if (!Terminated) Synchronize(&Timer);
}
else
{
ResetEvent(MyEvent);
WaitForSingleObject(MyEvent,INFINITE);
}
}
//---- Placez le code du thread ici ----
// TRACE("Methode Name " << "TMyTimerThread::Execute() " << "Id " << this->ThreadID << " Exit at " <<__TIME__);
} |
Partager