Atk.Misc¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Atk.Misc(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A set of ATK utility functions for thread locking
A set of utility functions for thread locking. This interface and all his related methods are deprecated since 2.12.
- classmethod get_instance()[source]¶
-
Obtain the singleton instance of
Atk.Misc
for this application.New in version 1.13.
Deprecated since version 2.12.
- threads_enter()[source]¶
Take the thread mutex for the GUI toolkit, if one exists. (This method is implemented by the toolkit ATK implementation layer; for instance, for GTK+, GAIL implements this via GDK_THREADS_ENTER).
New in version 1.13.
Deprecated since version 2.12.
- threads_leave()[source]¶
Release the thread mutex for the GUI toolkit, if one exists. This method, and
Atk.Misc.threads_enter
, are needed in some situations by threaded application code which services ATK requests, since fulfilling ATK requests often requires calling into the GUI toolkit. If a long-running or potentially blocking call takes place inside such a block, it should be bracketed byAtk.Misc.threads_leave
/Atk.Misc.threads_enter
calls. (This method is implemented by the toolkit ATK implementation layer; for instance, for GTK+, GAIL implements this via GDK_THREADS_LEAVE).New in version 1.13.
Deprecated since version 2.12.
- do_threads_enter() virtual¶
Take the thread mutex for the GUI toolkit, if one exists. (This method is implemented by the toolkit ATK implementation layer; for instance, for GTK+, GAIL implements this via GDK_THREADS_ENTER).
New in version 1.13.
Deprecated since version 2.12.
- do_threads_leave() virtual¶
Release the thread mutex for the GUI toolkit, if one exists. This method, and
Atk.Misc.threads_enter
, are needed in some situations by threaded application code which services ATK requests, since fulfilling ATK requests often requires calling into the GUI toolkit. If a long-running or potentially blocking call takes place inside such a block, it should be bracketed byAtk.Misc.threads_leave
/Atk.Misc.threads_enter
calls. (This method is implemented by the toolkit ATK implementation layer; for instance, for GTK+, GAIL implements this via GDK_THREADS_LEAVE).New in version 1.13.
Deprecated since version 2.12.