Gjsify LogoGjsify Logo

The #GstAtomicQueue object implements a queue that can be used from multiple threads without performing any blocking operations.

record

Hierarchy

  • AtomicQueue

Index

Constructors

Properties

Methods

Constructors

  • Create a new atomic queue instance. initial_size will be rounded up to the nearest power of 2 and used as the initial size of the queue.

    Parameters

    • initialSize: number

      initial queue size

    Returns AtomicQueue

Properties

name: string

Methods

  • length(): number
  • peek(): object
  • Peek the head element of the queue without removing it from the queue.

    Returns object

  • pop(): object
  • push(data: object): void
  • Append data to the tail of the queue.

    Parameters

    • data: object

      the data

    Returns void

  • ref(): void
  • unref(): void
  • Unref queue and free the memory when the refcount reaches 0.

    Returns void

  • Create a new atomic queue instance. initial_size will be rounded up to the nearest power of 2 and used as the initial size of the queue.

    Parameters

    • initialSize: number

      initial queue size

    Returns AtomicQueue

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method