title: Delphi check if TThread is still running
body: <p>I am using TThread, i just need to find out if thread is still running and terminate the application if it takes to long.</p>
  
  <p>Ex: </p>
  
  <pre><code>MyThread := TMyThread.Create;
  MyThread .Resume;
  MyThread.Terminate;
  
  total := 0;
  while MyThread.isRunning = true do // &lt; i need something like this
  begin
    // show message to user to wait a little longer we are still doing stuff
    sleep(1000);
    total := total + 1000;
    if total &gt; 60000 then 
       exit;
    end;
  </code></pre>
  
  <p>Is this possible with Delphi?</p>