[Lazarus] How to PostMessage to object?

Michael Schnell mschnell at lumino.de
Thu Jun 9 12:09:56 CEST 2011


On 06/09/2011 12:01 PM, Mattias Gaertner wrote:
>
> Why do you think it is thread safe?
>
I just trusted that it would be properly designed.

Looking at the code I found that it in fact seems to be buggy.

The linked list is modified both by the (even single) Worker Thread when 
inserting an element as by the main ("GUI") thread when removing one 
without protection by a semaphore.

(Without decent analysis) I don't believe that there is no chance of 
hazard.

-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110609/f5c1e228/attachment-0003.html>


More information about the Lazarus mailing list