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
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus