Clapper.ThreadedObject

g Clapper.ThreadedObject Clapper.ThreadedObject GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Object->Clapper.ThreadedObject

Subclasses:

Clapper.Player

Methods

Inherited:

Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_context ()

Virtual Methods

Inherited:

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

do_thread_start ()

do_thread_stop ()

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_instance

Gst.Object

r

Class Details

class Clapper.ThreadedObject(**kwargs)
Bases:

Gst.Object

Abstract:

No

Structure:

Clapper.ThreadedObjectClass

A base class for creating objects that work within a separate thread.

get_context()
Returns:

a GLib.MainContext of the object used thread.

Return type:

GLib.MainContext

Get the GLib.MainContext of the thread used by this object.

Useful when you want to invoke object thread to do some action in it from a different thread.

do_thread_start() virtual

Called right after thread started.

Useful for initializing objects that work within this new thread.

do_thread_stop() virtual

Called when thread is going to stop.

Useful for cleanup of things created on thread start.