GstVulkan.VulkanTrashList

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GstVulkan.VulkanHandlePool GstVulkan.VulkanHandlePool Gst.Object->GstVulkan.VulkanHandlePool GstVulkan.VulkanTrashList GstVulkan.VulkanTrashList GstVulkan.VulkanHandlePool->GstVulkan.VulkanTrashList

Subclasses:

GstVulkan.VulkanTrashFenceList

Methods

Inherited:

GstVulkan.VulkanHandlePool (3), Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

acquire (fence, notify, *user_data)

add (trash)

gc ()

wait (timeout)

Virtual Methods

Inherited:

GstVulkan.VulkanHandlePool (4), Gst.Object (1), GObject.Object (7)

do_add_func (trash)

do_gc_func ()

do_wait_func (timeout)

Properties

Inherited:

Gst.Object (2)

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Name

Type

Access

Description

parent

GstVulkan.VulkanHandlePool

r

the parent GstVulkan.VulkanHandle

Class Details

class GstVulkan.VulkanTrashList(**kwargs)
Bases:

GstVulkan.VulkanHandlePool

Abstract:

No

Structure:

GstVulkan.VulkanTrashListClass

New in version 1.18.

acquire(fence, notify, *user_data)
Parameters:
Returns:

a new or reused GstVulkan.VulkanTrash for the provided parameters.

Return type:

GstVulkan.VulkanTrash

New in version 1.18.

add(trash)
Parameters:

trash (GstVulkan.VulkanTrash) – GstVulkan.VulkanTrash object to add to the list

Returns:

whether trash could be added to self

Return type:

bool

New in version 1.18.

gc()

Remove any stored GstVulkan.VulkanTrash objects that have had their associated GstVulkan.VulkanFence signalled.

New in version 1.18.

wait(timeout)
Parameters:

timeout (int) – timeout in ns to wait, -1 for indefinite

Returns:

whether the wait succeeded in waiting for all objects to be freed.

Return type:

bool

New in version 1.18.

do_add_func(trash) virtual
Parameters:

trash (GstVulkan.VulkanTrash) – the GstVulkan.VulkanTrash to add to trash_list

Returns:

whether trash could be added to trash_list

Return type:

bool

the GstVulkan.VulkanTrashListAdd functions

do_gc_func() virtual

the GstVulkan.VulkanTrashListGC function

do_wait_func(timeout) virtual
Parameters:

timeout (int) – the timeout in ns to wait

Returns:

whether all objects were signalled and freed within the timeout

Return type:

bool

the GstVulkan.VulkanTrashListWait function