Title: [122491] trunk/Source/WTF
Revision
122491
Author
[email protected]
Date
2012-07-12 12:12:08 -0700 (Thu, 12 Jul 2012)

Log Message

Document ListHashSet iteration guarantees
https://bugs.webkit.org/show_bug.cgi?id=91106

Reviewed by Eric Seidel.

* wtf/ListHashSet.h:
(WTF): Expand class comment to document this.

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (122490 => 122491)


--- trunk/Source/WTF/ChangeLog	2012-07-12 19:02:04 UTC (rev 122490)
+++ trunk/Source/WTF/ChangeLog	2012-07-12 19:12:08 UTC (rev 122491)
@@ -1,3 +1,13 @@
+2012-07-12  Maciej Stachowiak  <[email protected]>
+
+        Document ListHashSet iteration guarantees
+        https://bugs.webkit.org/show_bug.cgi?id=91106
+
+        Reviewed by Eric Seidel.
+
+        * wtf/ListHashSet.h:
+        (WTF): Expand class comment to document this.
+
 2012-07-11  Mark Rowe  <[email protected]>
 
         <http://webkit.org/b/91024> Build against the latest SDK when targeting older OS X versions.

Modified: trunk/Source/WTF/wtf/ListHashSet.h (122490 => 122491)


--- trunk/Source/WTF/wtf/ListHashSet.h	2012-07-12 19:02:04 UTC (rev 122490)
+++ trunk/Source/WTF/wtf/ListHashSet.h	2012-07-12 19:12:08 UTC (rev 122491)
@@ -34,6 +34,10 @@
     // order - iterating it will always give back values in the order
     // in which they are added.
 
+    // Unlike iteration of most WTF Hash data structures, iteration is
+    // guaranteed safe against mutation of the ListHashSet, except for
+    // removal of the item currently pointed to by a given iterator.
+
     // In theory it would be possible to add prepend, insertAfter
     // and an append that moves the element to the end even if already present,
     // but unclear yet if these are needed.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to