[Lazarus] More thread questions.

Paul Nicholls paulfnicholls at gmail.com
Tue Jul 13 03:21:24 CEST 2010


Hi Frank,
  AFAIK, a thread WILL execute immediately exiting the Create method unless you pass False to the suspended variable in the create method, and call Resume in the main thread later on.

I don't think resuming a thread will never do anything if the threads execute method has fallen through, but people can feel free to correct me on this :)

cheers,
Paul


  ----- Original Message ----- 
  From: Frank Church 
  To: Lazarus mailing list 
  Sent: Tuesday, July 13, 2010 1:42 AM
  Subject: [Lazarus] More thread questions.



  Can I take it that a thread will never execute until the Execute procedure is called, and if the Execute procedure is exited, it will not run again until called by the main thread? 

  i.e Resuming a thread which has exited will achieve nothing unless it is called within the scope of an existing Execute?

  -- 
  Frank Church

  =======================
  http://devblog.brahmancreations.com



------------------------------------------------------------------------------


  --
  _______________________________________________
  Lazarus mailing list
  Lazarus at lists.lazarus.freepascal.org
  http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20100713/51951b28/attachment-0004.html>


More information about the Lazarus mailing list