Ags.WorkerThread¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The ::do_poll() signal runs independently of |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
run_cond |
r |
||
run_mutex |
r |
||
status_flags |
r |
||
thread |
r |
||
worker_thread |
r |
Class Details¶
- class Ags.WorkerThread(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
the new
Ags.WorkerThread
- Return type:
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:
- Return type:
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:
- 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.