Ags.MainLoop¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
Properties¶
None
Signals¶
Name |
Short Description |
---|---|
Change frequency. |
Fields¶
None
Class Details¶
- class Ags.MainLoop¶
- Bases:
- Structure:
- change_frequency(frequency)¶
- Parameters:
frequency (
float
) – the new frequency
Change frequency.
New in version 3.0.0.
- dec_queued_critical_region()¶
Decrement thread needs access to main loop’s critical region field.
New in version 3.0.0.
- get_tree_lock()¶
- Returns:
the mutex
- Return type:
Retrieve the tree mutex.
New in version 3.0.0.
- inc_queued_critical_region()¶
Increment thread needs access to main loop’s critical region field.
New in version 3.0.0.
- is_critical_region()¶
-
Check if main loop is in critical region.
New in version 3.0.0.
- is_syncing()¶
-
Check if thread tree is syncing.
New in version 3.0.0.
- set_critical_region(is_critical_region)¶
-
Set main loop is in critical region.
New in version 3.0.0.
- set_syncing(is_syncing)¶
-
Set thread tree is syncing.
New in version 3.0.0.
- test_queued_critical_region()¶
- Returns:
0 if main loop may enter critical region, otherwise not
- Return type:
Test main loop may enter critical region.
New in version 3.0.0.
- do_change_frequency(frequency) virtual¶
- Parameters:
frequency (
float
) – the new frequency
Change frequency.
New in version 3.0.0.
- do_dec_queued_critical_region() virtual¶
Decrement thread needs access to main loop’s critical region field.
New in version 3.0.0.
- do_get_tree_lock() virtual¶
- Returns:
the mutex
- Return type:
Retrieve the tree mutex.
New in version 3.0.0.
- do_inc_queued_critical_region() virtual¶
Increment thread needs access to main loop’s critical region field.
New in version 3.0.0.
- do_is_critical_region() virtual¶
-
Check if main loop is in critical region.
New in version 3.0.0.
- do_is_syncing() virtual¶
-
Check if thread tree is syncing.
New in version 3.0.0.
- do_set_critical_region(is_critical_region) virtual¶
-
Set main loop is in critical region.
New in version 3.0.0.
- do_set_syncing(is_syncing) virtual¶
-
Set thread tree is syncing.
New in version 3.0.0.
Signal Details¶
- Ags.MainLoop.signals.change_frequency(main_loop, frequency)¶
- Signal Name:
change-frequency
- Flags:
- Parameters:
main_loop (
Ags.MainLoop
) – The object which received the signalfrequency (
float
) – the new frequency
Change frequency.
New in version 3.0.0.