Package ch.bailu.gtk.gst
Klasse TaskPool
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gst.TaskPool
- Alle implementierten Schnittstellen:
PointerInterface
- Bekannte direkte Unterklassen:
SharedTaskPool
This object provides an abstraction for creating threads. The default
implementation uses a regular GThreadPool to start tasks.
Subclasses can be made to create custom threads.
implementation uses a regular GThreadPool to start tasks.
Subclasses can be made to create custom threads.
https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenVon Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungTaskPool()
Create a new default task pool.TaskPool
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
cleanup()
Wait for all tasks to be stopped.void
disposeHandle
(Pointer id) Dispose of the handle returned by gst_task_pool_push().static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
void
Join a task and/or return it to the pool.void
prepare()
Prepare the taskpool for accepting gst_task_pool_push() operations.push
(TaskPool.OnTaskPoolFunction func, Pointer user_data) Start the execution of a new thread from @pool.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
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
-
TaskPool
-
TaskPool
public TaskPool()Create a new default task pool. The default task pool will use a regular
GThreadPool for threads.
-
-
Methodendetails
-
getClassHandler
-
cleanup
public void cleanup()Wait for all tasks to be stopped. This is mainly used internally
to ensure proper cleanup of internal data structures in test suites.
MT safe. -
disposeHandle
Dispose of the handle returned by gst_task_pool_push(). This does
not need to be called with the default implementation as the default
#GstTaskPoolClass::push implementation always returns %NULL. This does not need to be
called either when calling gst_task_pool_join(), but should be called
when joining is not necessary, but gst_task_pool_push() returned a
non-%NULL value.
This method should only be called with the same @pool instance that provided
@id.- Parameter:
id
- the id
-
join
Join a task and/or return it to the pool. @id is the id obtained from
gst_task_pool_push(). The default implementation does nothing, as the
default #GstTaskPoolClass::push implementation always returns %NULL.
This method should only be called with the same @pool instance that provided
@id.- Parameter:
id
- the id
-
prepare
Prepare the taskpool for accepting gst_task_pool_push() operations.
MT safe.- Löst aus:
AllocationError
-
push
public Pointer push(TaskPool.OnTaskPoolFunction func, @Nullable Pointer user_data) throws AllocationError Start the execution of a new thread from @pool.- Parameter:
func
- the function to calluser_data
- data to pass to @func- Gibt zurück:
- a pointer that should be used for the gst_task_pool_join function. This pointer can be %NULL, you must check @error to detect errors. If the pointer is not %NULL and gst_task_pool_join() is not used, call gst_task_pool_dispose_handle() instead.
- Löst aus:
AllocationError
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-