Skip to content

Commit 9f1231b

Browse files
Rick AndersonBillWagner
authored andcommitted
Update Queue`1.xml (#2256)
* Update Queue`1.xml * Update Queue`1.xml
1 parent ea6b5cf commit 9f1231b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

xml/System.Collections.Generic/Queue`1.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
</remarks>
9797
<threadsafe>Public static (<see langword="Shared" /> in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
9898

99-
A <see cref="T:System.Collections.Generic.Queue`1" /> can support multiple readers concurrently, as long as the collection is not modified. Even so, enumerating through a collection is intrinsically not a thread-safe procedure. To guarantee thread safety during enumeration, you can lock the collection during the entire enumeration. To allow the collection to be accessed by multiple threads for reading and writing, you must implement your own synchronization.</threadsafe>
99+
A <see cref="T:System.Collections.Generic.Queue`1" /> can support multiple readers concurrently, as long as the collection is not modified. Even so, enumerating through a collection is intrinsically not a thread-safe procedure. For a thread-safe queue, see <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" />.
100+
</threadsafe>
100101
</Docs>
101102
<Members>
102103
<MemberGroup MemberName=".ctor">
@@ -1316,4 +1317,4 @@ finally {
13161317
</Docs>
13171318
</Member>
13181319
</Members>
1319-
</Type>
1320+
</Type>

0 commit comments

Comments
 (0)