Atk.Misc¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | get_instance() | 
| threads_enter() | |
| threads_leave() | 
Properties¶
None
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class Atk.Misc(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - Structure: - Atk.MiscClass- A set of utility functions for thread locking. This interface and all his related methods are deprecated since 2.12. - 
classmethod get_instance()[source]¶
- Returns: - The singleton instance of - Atk.Miscfor this application.- Return type: - Atk.Misc- Obtain the singleton instance of - Atk.Miscfor 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 by- Atk.Misc.threads_leave/- Atk.Misc.threads_entercalls. (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 by- Atk.Misc.threads_leave/- Atk.Misc.threads_entercalls. (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. 
 
- 
classmethod