gi-gst-1.0.30: GStreamer bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gst.Objects.SharedTaskPool

Description

The SharedTaskPool object.

Since: 1.20

Synopsis

Exported types

newtype SharedTaskPool Source #

Memory-managed wrapper type.

Constructors

SharedTaskPool (ManagedPtr SharedTaskPool) 

Instances

Instances details
Eq SharedTaskPool Source # 
Instance details

Defined in GI.Gst.Objects.SharedTaskPool

GObject SharedTaskPool Source # 
Instance details

Defined in GI.Gst.Objects.SharedTaskPool

ManagedPtrNewtype SharedTaskPool Source # 
Instance details

Defined in GI.Gst.Objects.SharedTaskPool

TypedObject SharedTaskPool Source # 
Instance details

Defined in GI.Gst.Objects.SharedTaskPool

Methods

glibType :: IO GType

HasParentTypes SharedTaskPool Source # 
Instance details

Defined in GI.Gst.Objects.SharedTaskPool

IsGValue (Maybe SharedTaskPool) Source #

Convert SharedTaskPool to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gst.Objects.SharedTaskPool

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe SharedTaskPool -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe SharedTaskPool)

type ParentTypes SharedTaskPool Source # 
Instance details

Defined in GI.Gst.Objects.SharedTaskPool

type ParentTypes SharedTaskPool = '[TaskPool, Object, Object]

class (GObject o, IsDescendantOf SharedTaskPool o) => IsSharedTaskPool o Source #

Type class for types which can be safely cast to SharedTaskPool, for instance with toSharedTaskPool.

Instances

Instances details
(GObject o, IsDescendantOf SharedTaskPool o) => IsSharedTaskPool o Source # 
Instance details

Defined in GI.Gst.Objects.SharedTaskPool

toSharedTaskPool :: (MonadIO m, IsSharedTaskPool o) => o -> m SharedTaskPool Source #

Cast to SharedTaskPool, for types for which this is known to be safe. For general casts, use castTo.

Methods

getMaxThreads

sharedTaskPoolGetMaxThreads Source #

Arguments

:: (HasCallStack, MonadIO m, IsSharedTaskPool a) 
=> a

pool: a SharedTaskPool

-> m Word32

Returns: the maximum number of threads pool is configured to spawn

No description available in the introspection data.

Since: 1.20

new

sharedTaskPoolNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SharedTaskPool

Returns: a new SharedTaskPool. objectUnref after usage.

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 SharedTaskPool 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.

Since: 1.20

setMaxThreads

sharedTaskPoolSetMaxThreads Source #

Arguments

:: (HasCallStack, MonadIO m, IsSharedTaskPool a) 
=> a

pool: a SharedTaskPool

-> Word32

maxThreads: Maximum number of threads to spawn.

-> m () 

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 threadPoolSetMaxThreads.

Setting maxThreads to 0 effectively freezes the pool.

Since: 1.20