Table of Contents

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

constructArguments ConstructArgument[]

Task(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Task(CreationData data)

Parameters

data CreationData

Task(TaskHandle)

protected Task(TaskHandle handle)

Parameters

handle TaskHandle

Methods

CleanupAll()

public static void CleanupAll()

GetGType()

public static Type GetGType()

Returns

Type

GetPool()

public TaskPool GetPool()

Returns

TaskPool

GetState()

public TaskState GetState()

Returns

TaskState

Join()

public bool Join()

Returns

bool

New(TaskFunction)

public static Task New(TaskFunction func)

Parameters

func TaskFunction

Returns

Task

NewFromPointer(nint, bool)

Creates a new managed Task instance for a given pointer.

public static Task NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Task

NewWithProperties(ConstructArgument[])

Creates a new Task and sets the properties specified by the construct arguments.

public static Task NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Task

Pause()

public bool Pause()

Returns

bool

Resume()

[Version("1.18")]
public bool Resume()

Returns

bool

SetEnterCallback(TaskThreadFunc)

public void SetEnterCallback(TaskThreadFunc enterFunc)

Parameters

enterFunc TaskThreadFunc

SetLeaveCallback(TaskThreadFunc)

public void SetLeaveCallback(TaskThreadFunc leaveFunc)

Parameters

leaveFunc TaskThreadFunc

SetLock(RecMutex)

public void SetLock(RecMutex mutex)

Parameters

mutex RecMutex

SetPool(TaskPool)

public void SetPool(TaskPool pool)

Parameters

pool TaskPool

SetState(TaskState)

public bool SetState(TaskState state)

Parameters

state TaskState

Returns

bool

Start()

public bool Start()

Returns

bool

Stop()

public bool Stop()

Returns

bool