Ags.ReturnableThread¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The thread pool it is assigned with |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
flags |
r |
||
handler |
r |
||
reset_mutex |
r |
||
safe_data |
r |
||
thread |
r |
||
thread_pool |
r |
Class Details¶
- class Ags.ReturnableThread(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(thread_pool)¶
- Parameters:
thread_pool (
GObject.Object) – theAgs.ThreadPool- Returns:
the new
Ags.ReturnableThread- Return type:
Create a new instance of
Ags.ReturnableThread.New in version 3.0.0.
- connect_safe_run(callback)¶
- Parameters:
callback (
Ags.ReturnableThreadCallback) – the callback
Connects callback to thread.
New in version 3.0.0.
- disconnect_safe_run()¶
Disconnects callback of thread.
New in version 3.0.0.
- safe_run()¶
- set_flags(flags)¶
- Parameters:
flags (
Ags.ReturnableThreadFlags) – the flags
Set flags.
New in version 3.0.0.
- test_flags(flags)¶
- Parameters:
flags (
Ags.ReturnableThreadFlags) – the flags- Returns:
- Return type:
Test flags to be set on self.
New in version 3.0.0.
- unset_flags(flags)¶
- Parameters:
flags (
Ags.ReturnableThreadFlags) – the flags
Unset flags.
New in version 3.0.0.
- do_safe_run() virtual¶
Signal Details¶
- Ags.ReturnableThread.signals.safe_run(returnable_thread)¶
- Signal Name:
safe-run- Flags:
- Parameters:
returnable_thread (
Ags.ReturnableThread) – The object which received the signal
The
::safe-runis invoked durinAgs.Thread::runas a context safe wrapper.New in version 3.0.0.
Property Details¶
- Ags.ReturnableThread.props.thread_pool¶
- Name:
thread-pool- Type:
- Default Value:
- Flags:
The assigned
Ags.ThreadPoolproviding default settings.New in version 3.0.0.