Mono Class Library: System.Collections.Queue Overview | Members

System.Collections.Queue.Synchronized Method

Makes a thread-safe queue. [Edit]

public static Queue Synchronized (Queue queue)

Parameters

queue
The Queue to make a thread-safe version of [Edit]

Returns

The thread-safe version of the Queue passed in. [Edit]

Remarks

C# Example
	using System.Collections;

	Queue NonThreadSafeQueue = new Queue();
	Queue ThreadSafeQueue = Queue.Synchronized(NonThreadSafeQueue);
	
  
Note:

A Queue can be tested for thread-safeness through the Queue.IsSynchronized property.

[Edit]

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0