Mono Class Library: System.Collections.Queue Overview | MembersSystem.Collections.Queue.Synchronized Method |
Makes a thread-safe queue. [Edit]
|
The thread-safe version of the Queue passed in. [Edit]
C# Example using System.Collections; Queue NonThreadSafeQueue = new Queue(); Queue ThreadSafeQueue = Queue.Synchronized(NonThreadSafeQueue);Note:[Edit]A Queue can be tested for thread-safeness through the Queue.IsSynchronized property.
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0