Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Feb : Making sure one thread starts after an other finishes

www.cryer.info
Managed Newsgroup Archive

Making sure one thread starts after an other finishes

Subject:Making sure one thread starts after an other finishes
Posted by:"CheGueVerra" (cheguever..@hotmail.com)
Date:Thu, 16 Feb 2006 11:34:00 -0500

Hi All,

This might be basic stuff, but I was wondering what was the best way to
implement this.  I have a service that is responsible for two thread call
them A and B(both are createSuspended = false).  Now I need to start thread
B after thread A is finished, the first thing that came to my mind was to do
something like this:

while not A.Terminated do ; // Just waits for terminated to be true ??? (no
synchronize calls because no GUI )
B := B.create // This will start the B thread ...

When I looked at the code, I have a funny feeling that it's not that simple,
I'm still searching but would like to get some feedback on this thanks.

CheGueVerra

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive