On 9/17/08, Henry Vermaak <[EMAIL PROTECTED]> wrote:
>
> Delphi has code in its WaitFor function that prevents this deadlock
>  from occuring.  They basically wait on the SyncEvent and the handle of
>  the thread, calling CheckSynchonize when the SyncEvent triggers.
>
>  I'm not sure if this is possible with fpc, but I'm sure there must be
>  a solution.

Umm, and TThread.WaitFor is not virtual, so I can't override it
either. :-(  I can't see any CheckSynchronize call in the unix
implementation of TThread, so is might be a bug.

I'll raise this issue in the fpc-devel mailing list and see what they say.
Thanks everybody for responding.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to