Atk.Misc

g Atk.Misc Atk.Misc GObject.Object GObject.Object GObject.Object->Atk.Misc

Subclasses:None

Virtual Methods

Inherited:GObject.Object (7)
  do_threads_enter ()
  do_threads_leave ()

Properties

None

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent GObject.Object r  

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.Misc for this application.
Return type:Atk.Misc

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 by Atk.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 by Atk.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.