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
funcTaskFunctionA callback. If it raises an exception the application will terminate. To receive this unhandled exception see SetHandler(Action<Exception>?).
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
enterFuncTaskThreadFuncA callback. If it raises an exception the application will terminate. To receive this unhandled exception see SetHandler(Action<Exception>?).
SetLeaveCallback(TaskThreadFunc)
public void SetLeaveCallback(TaskThreadFunc leaveFunc)
Parameters
leaveFuncTaskThreadFuncA callback. If it raises an exception the application will terminate. To receive this unhandled exception see SetHandler(Action<Exception>?).
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()