Klasse AtomicQueue

Alle implementierten Schnittstellen:
PointerInterface

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

https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html

  • Konstruktordetails

    • AtomicQueue

      public AtomicQueue(PointerContainer pointer)
    • AtomicQueue

      public AtomicQueue(int initial_size)
      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.
      Parameter:
      initial_size - initial queue size
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • length

      public int length()
      Get the amount of items in the queue.
      Gibt zurück:
      the number of elements in the queue.
    • peek

      public Pointer peek()
      Peek the head element of the queue without removing it from the queue.
      Gibt zurück:
      the head element of @queue or %NULL when the queue is empty.
    • pop

      public Pointer pop()
      Get the head element of the queue.
      Gibt zurück:
      the head element of @queue or %NULL when the queue is empty.
    • push

      public void push(@Nullable Pointer data)
      Append @data to the tail of the queue.
      Parameter:
      data - the data
    • ref

      public void ref()
      Increase the refcount of @queue.
    • unref

      public void unref()
      Unref @queue and free the memory when the refcount reaches 0.
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()