Class Task
- Namespace
- Gst
- Assembly
- Gst-1.0.dll
public class Task : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Task
- Implements
- Inherited Members
Constructors
Task(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Task(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Task(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Task(CreationData data)
Parameters
dataCreationData
Task(TaskHandle)
protected Task(TaskHandle handle)
Parameters
handleTaskHandle
Methods
CleanupAll()
public static void CleanupAll()
GetGType()
public static Type GetGType()
Returns
GetPool()
public TaskPool GetPool()
Returns
GetState()
public TaskState GetState()
Returns
Join()
public bool Join()
Returns
New(TaskFunction)
public static Task New(TaskFunction func)
Parameters
funcTaskFunction
Returns
NewFromPointer(nint, bool)
Creates a new managed Task instance for a given pointer.
public static Task NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Task and sets the properties specified by the construct arguments.
public static Task NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Pause()
public bool Pause()
Returns
Resume()
[Version("1.18")]
public bool Resume()
Returns
SetEnterCallback(TaskThreadFunc)
public void SetEnterCallback(TaskThreadFunc enterFunc)
Parameters
enterFuncTaskThreadFunc
SetLeaveCallback(TaskThreadFunc)
public void SetLeaveCallback(TaskThreadFunc leaveFunc)
Parameters
leaveFuncTaskThreadFunc
SetLock(RecMutex)
public void SetLock(RecMutex mutex)
Parameters
mutexRecMutex
SetPool(TaskPool)
public void SetPool(TaskPool pool)
Parameters
poolTaskPool
SetState(TaskState)
public bool SetState(TaskState state)
Parameters
stateTaskState
Returns
Start()
public bool Start()
Returns
Stop()
public bool Stop()