On Thursday 13 December 2007 18.16, Micha Nelissen wrote:
> Martin Schreiber wrote:
> > Fourthly there is FPC synchronize with the problem that checksynchronize
> > is called once in onidle of then main event loop. One can call
> > application.wakeupguithread to enable processing but there is a race
> > condition.
>
> AFAICS, these are all variants on the TThread.Synchronize "hack". There
> is no race condition in TThread.Synchronize, so why not use this then?
>
You are right, there seems to be no race condition if one uses WakeMainThread 
correct. There can be a deadlock if the main thread tries to destroy a thread 
which is waiting for Synchronize.

Martin

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to