Ags.WorkerThread

g Ags.Connectable Ags.Connectable Ags.Thread Ags.Thread Ags.Connectable->Ags.Thread Ags.WorkerThread Ags.WorkerThread Ags.Thread->Ags.WorkerThread GObject.GInterface GObject.GInterface GObject.GInterface->Ags.Connectable GObject.Object GObject.Object GObject.Object->Ags.Thread

Subclasses:

Ags.DestroyWorker

Methods

Inherited:

Ags.Thread (48), GObject.Object (37), Ags.Connectable (13)

Structs:

GObject.ObjectClass (5)

class

new ()

do_poll ()

set_status_flags (status_flags)

test_status_flags (status_flags)

unset_status_flags (status_flags)

Virtual Methods

Inherited:

Ags.Thread (4), GObject.Object (7), Ags.Connectable (13)

do_do_poll ()

Properties

Inherited:

Ags.Thread (3)

Signals

Inherited:

Ags.Thread (4), GObject.Object (1)

Name

Short Description

do-poll

The ::do_poll() signal runs independently of ::run() but might be synchronized using a conditional lock.

Fields

Inherited:

Ags.Thread (4), GObject.Object (1)

Name

Type

Access

Description

run_cond

GLib.Cond

r

run_mutex

GLib.Mutex

r

status_flags

int

r

thread

Ags.Thread

r

worker_thread

GLib.Thread

r

Class Details

class Ags.WorkerThread(**kwargs)
Bases:

Ags.Thread

Abstract:

No

Structure:

Ags.WorkerThreadClass

classmethod new()
Returns:

the new Ags.WorkerThread

Return type:

Ags.WorkerThread

Create a new instance of Ags.WorkerThread.

New in version 3.0.0.

do_poll()

Do poll your work. It is called of the worker thread.

New in version 3.0.0.

set_status_flags(status_flags)
Parameters:

status_flags (Ags.WorkerThreadStatusFlags) – status flags

Set status flags.

New in version 3.0.0.

test_status_flags(status_flags)
Parameters:

status_flags (Ags.WorkerThreadStatusFlags) – status flags

Returns:

True if status flags set, otherwise False

Return type:

bool

Test status_flags of self.

New in version 3.0.0.

unset_status_flags(status_flags)
Parameters:

status_flags (Ags.WorkerThreadStatusFlags) – status flags

Unset status flags.

New in version 3.0.0.

do_do_poll() virtual

Do poll your work. It is called of the worker thread.

New in version 3.0.0.

Signal Details

Ags.WorkerThread.signals.do_poll(worker_thread)
Signal Name:

do-poll

Flags:

RUN_LAST

Parameters:

worker_thread (Ags.WorkerThread) – The object which received the signal

The ::do_poll() signal runs independently of ::run() but might be synchronized using a conditional lock.

New in version 3.0.0.