File: threading.rst

package info (click to toggle)
jeepney 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 592 kB
  • sloc: python: 3,036; makefile: 206; xml: 115
file content (37 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Blocking I/O with threads
=========================

This allows using a D-Bus connection from multiple threads.
The router also launches a separate thread to receive incoming messages.
See :ref:`connections_and_routers` for more about the two interfaces.

.. module:: jeepney.io.threading

.. autofunction:: open_dbus_router

.. autoclass:: DBusRouter

   .. automethod:: send

   .. automethod:: send_and_get_reply

   .. automethod:: filter

   .. automethod:: close

      Leaving the ``with`` block will also close the router.

.. autoclass:: Proxy

   .. seealso:: :ref:`msggen_proxies`

.. autofunction:: open_dbus_connection

.. autoclass:: DBusConnection

   .. automethod:: send

   .. automethod:: receive

   .. automethod:: close