Klasse SharedTaskPool

Alle implementierten Schnittstellen:
PointerInterface

public class SharedTaskPool extends TaskPool
  • Konstruktordetails

    • SharedTaskPool

      public SharedTaskPool(PointerContainer pointer)
    • SharedTaskPool

      public SharedTaskPool()
      Create a new shared task pool. The shared task pool will queue tasks on
      a maximum number of threads, 1 by default.

      Do not use a #GstSharedTaskPool to manage potentially inter-dependent tasks such
      as pad tasks, as having one task waiting on another to return before returning
      would cause obvious deadlocks if they happen to share the same thread.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getMaxThreads

      public int getMaxThreads()
      Gibt zurück:
      the maximum number of threads @pool is configured to spawn
    • setMaxThreads

      public void setMaxThreads(int max_threads)
      Update the maximal number of threads the @pool may spawn. When
      the maximal number of threads is reduced, existing threads are not
      immediately shut down, see g_thread_pool_set_max_threads().

      Setting @max_threads to 0 effectively freezes the pool.
      Parameter:
      max_threads - Maximum number of threads to spawn.
    • 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()