diff options
| author | Simon McVittie <smcv@celebrin.pseudorandom.co.uk> | 2006-12-05 11:35:23 +0000 |
|---|---|---|
| committer | Simon McVittie <smcv@celebrin.pseudorandom.co.uk> | 2006-12-05 11:35:23 +0000 |
| commit | 3c606fda6ea70622ee234cc51d63644ab27e6e55 (patch) | |
| tree | d01aa27bffc1d6aad16b4fadc048d4a48e0fd10e /dbus/mainloop | |
| parent | 0c7cc37a5ac8fe1a044cfcf6d615aa8341dcb30e (diff) | |
| download | dbus-python-3c606fda6ea70622ee234cc51d63644ab27e6e55.tar.gz | |
dbus/mainloop/__init__.py, dbus/mainloop/glib.py: Add docstrings
Diffstat (limited to 'dbus/mainloop')
| -rw-r--r-- | dbus/mainloop/__init__.py | 4 | ||||
| -rw-r--r-- | dbus/mainloop/glib.py | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/dbus/mainloop/__init__.py b/dbus/mainloop/__init__.py index 3b07a9b..95770dc 100644 --- a/dbus/mainloop/__init__.py +++ b/dbus/mainloop/__init__.py @@ -1,3 +1,7 @@ +"""Base definitions, etc. for main loop integration. + +""" + import _dbus_bindings NativeMainLoop = _dbus_bindings.NativeMainLoop diff --git a/dbus/mainloop/glib.py b/dbus/mainloop/glib.py index ed28696..2425852 100644 --- a/dbus/mainloop/glib.py +++ b/dbus/mainloop/glib.py @@ -20,12 +20,19 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +"""GLib main loop integration using libdbus-glib.""" + __all__ = ('DBusGMainLoop', 'threads_init') from _dbus_glib_bindings import DBusGMainLoop, gthreads_init _dbus_gthreads_initialized = False def threads_init(): + """Initialize threads in dbus-glib, if this has not already been done. + + This must be called before creating a second thread in a program that + uses this module. + """ global _dbus_gthreads_initialized if not _dbus_gthreads_initialized: gthreads_init() |
