Package ch.bailu.gtk.gst
Klasse AtomicQueue
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gst.AtomicQueue
- Alle implementierten Schnittstellen:
PointerInterface
The #GstAtomicQueue object implements a queue that can be used from multiple
threads without performing any blocking operations.
threads without performing any blocking operations.
https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAtomicQueue
(int initial_size) Create a new atomic queue instance.AtomicQueue
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
int
length()
Get the amount of items in the queue.peek()
Peek the head element of the queue without removing it from the queue.pop()
Get the head element of the queue.void
Append @data to the tail of the queue.void
ref()
Increase the refcount of @queue.void
unref()
Unref @queue and free the memory when the refcount reaches 0.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
AtomicQueue
-
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
-
length
public int length()Get the amount of items in the queue.- Gibt zurück:
- the number of elements in the queue.
-
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
Get the head element of the queue.- Gibt zurück:
- the head element of @queue or %NULL when the queue is empty.
-
push
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
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-