Tobias Giesen пишет:
Hi,
I think you shouldn't create suspended threads anyway. The Windows
API docs say that suspend/resume is only for debuggers. To synchronize
threads or to delay the starting of a thread you should use events,
WaitForMultipleObjects etc.
Creating a suspended TThread is a different matter than suspending it later on.
TThread has code to handle the initial suspend case, so there should be no need in additional user
code. Further, to differentiate between 'initial' and 'subsequent' suspends, Delphi has introduced a
method named 'Start'. It was added to FPC recently, too.
Regards,
Sergei
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus