class · System.Threading

ConcurrentQueue<T>

public class System.Threading.ConcurrentQueue<T> : System.Any

A queue several threads use at once (a lock around a Queue).

Tipo
class
Espacio de nombres
System.Threading
Ensamblado
System.Core
Acceso
public, final
Archivo fuente
Threading.ant

Parámetros de tipo

NombreRestricciones
Tcualquier tipo

Herencia

Clases base
Any ConcurrentQueue<T>

Constructores

constructor ConcurrentQueue()
#

Propiedades

property Count: i32
#

read-only

property IsEmpty: bool
#

read-only

Métodos

method Enqueue(item: T) -> void
#
method TryDequeue(fallback: T) -> T
#

The first item, taken out; fallback when the queue is empty.

method Dispose() -> void
#

Frees what it holds (it must not be used after).

Miembros privados e internos (2)

field mutex: System.Threading.Mutex
#

private

field items: System.Queue<T>
#

private

Miembros heredados (5)

Código fuente

ConcurrentQueue<T> en Larva HIR, descompilado a partir de su Larva HIR.

System.Threading.ConcurrentQueue.hir
// A queue several threads use at once (a lock around a Queue).
public class System.Threading.ConcurrentQueue<T> : System.Any
{
    field mutex: System.Threading.Mutex
    field items: System.Queue<T>
    constructor ConcurrentQueue()
    method Enqueue(item: T) -> void
    // The first item, taken out; `fallback` when the queue is empty.
    method TryDequeue(fallback: T) -> T
    // Frees what it holds (it must not be used after).
    method Dispose() -> void
    property Count: i32
    property IsEmpty: bool
}
Esc