Ags.ThreadPool¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The maximum of threads to be created |
||
r/w |
The maximum of unused threads |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
create_threads |
r |
||
creation_cond |
r |
||
creation_mutex |
r |
||
flags |
r |
||
gobject |
r |
||
idle |
r |
||
idle_cond |
r |
||
idle_mutex |
r |
||
max_threads |
r |
||
max_unused_threads |
r |
||
parent |
r |
||
queued |
r |
||
returnable_thread |
[ |
r |
|
thread |
r |
Class Details¶
- class Ags.ThreadPool(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(parent)¶
- Parameters:
parent (
Ags.Thread
) – the parentAgs.Thread
of returnable threads- Returns:
the new
Ags.ThreadPool
- Return type:
Create a new
Ags.ThreadPool
.New in version 3.0.0.
- pull()¶
- Returns:
a new
Ags.Thread
- Return type:
Pull a previously instantiated
Ags.ReturnableThread
. Note this function may block until a new thread is available.New in version 3.0.0.
- start()¶
Start the thread pool.
New in version 3.0.0.
- do_start() virtual¶
Start the thread pool.
New in version 3.0.0.
Signal Details¶
- Ags.ThreadPool.signals.start(thread_pool)¶
- Signal Name:
start
- Flags:
- Parameters:
thread_pool (
Ags.ThreadPool
) – The object which received the signal
The
::start
() signal is invoked in order to started the pool.New in version 3.0.0.
Property Details¶
- Ags.ThreadPool.props.max_threads¶
-
The maximum amount of threads available.
New in version 3.0.0.