Skip to content
Snippets Groups Projects
Commit 3029258f authored by rswindell's avatar rswindell
Browse files

Increased sleep back to 1 sec, added TThreadList comment.

parent 42155ed2
No related branches found
No related tags found
No related merge requests found
......@@ -34,10 +34,11 @@ void __fastcall TMyThread::Execute()
{
while(!Terminated) {
Synchronize(AddToLog);
/* TThreadList is a simplier way to use a thread-safe TList */
CriticalSection->Enter();
List->Add(new AnsiString(ThreadID));
CriticalSection->Leave();
Sleep(1);
Sleep(1000);
}
}
//---------------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment