I am beginning to lose trust in my ability to code straight.

downs default_357-line at yahoo.de
Wed Jun 25 10:17:29 PDT 2008


Aaaand another one!

This time, it's a race condition.

When two threads try to removeRange at the same time, the position of a Range might change before the lock is engaged.

Fixed by passing the index by reference until inside the sync block.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: phobos_gc_constant_time_removeRange.patch
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20080625/a9141e5f/attachment.ksh>


More information about the Digitalmars-d mailing list