Commit Graph

22 Commits

Author SHA1 Message Date
Thomas Zimmermann
a0003d5854 Bug 891866: Support nsRefPtr<RawDBusConnection>, r=qdot
Instances of RawDBusConnection can now be contained in nsRefPtr. This
allows to share the DBus connection among multiple threads.

--HG--
extra : rebase_source : fb24472b3b55e77abc7354f17ef679661f62b7fb
2013-07-22 13:30:22 +02:00
Thomas Zimmermann
c3746ccd8e Bug 830290: Added dispatch function for DBus thread r=bent,qdot
The new function allows to schedule nsRunnables to an existing DBus
thread. This intercepts the running instance of DBusPollTask and
makes the DBus thread process the dispatched runnable. The intercepted
poll task automatically continues polling once all pending runnables
have been processed.
2013-01-14 11:50:27 +01:00
Thomas Zimmermann
3a688cbcb3 Bug 830290: Use DBusPollTask r=bent,qdot
This patch replaces the DBus EventLoop function by an instance
of DBusPollTask. It also cleans up the initialization and shutdown
code of the DBusThread.
2013-01-14 11:50:25 +01:00
Thomas Zimmermann
bff7e9cbcf Bug 830290: Added DBusPollTask r=bent,qdot
This patch adds class DBusPollTask. The DBusPollTask class is an
nsRunnable for receiving DBus messages. It is intended to run in
a separate thread that is dedicated to DBus only.

The Run function of the poll task resembles the DBus EventLoop
function, but allows to intercept execution in favor of other
nsRunnables. Afterwards the DBusPollTask continues.
2013-01-14 11:50:21 +01:00
Thomas Zimmermann
2a57c5d12a Bug 830290: Cleanup DBus EventLoop function r=bent,qdot
We intent to run the DBus thread's EventLoop function as separate
nsRunnable, but the function also contains code for initializing
sockets that are used for internal communication.

With this patch the socket initialization has been moved to the
setup function. This reduces the EventLoop function to plain event
handling.
2013-01-14 11:50:18 +01:00
Kyle Machulis
a1549cd802 Bug 843913: Set DBus watch function to null on event loop exit; r=tzimmermann 2013-02-26 10:01:48 -08:00
Kyle Machulis
8110153790 Bug 743933: Update B2G Bluetooth to ICS API; r=echou 2012-09-17 23:11:00 -07:00
Eric Chou
1f79e5fddf Bug 783932 - [b2g-bluetooth] Fix wrong textwidth(tw=) value in Mode line, r=qdot 2012-08-21 11:21:24 +08:00
Kyle Machulis
084b90c613 Bug 759883 - [b2g-bluetooth] Divide out bluetooth specifics from DBusThread object; r=echou 2012-08-07 21:16:03 -07:00
Kyle Machulis
140a6255ce Bug 761511: Patch 2 - Added BluetoothPropertyContainer base class and utility functions; r=mrbkap 2012-07-31 21:49:59 -07:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Kyle Machulis
5abbd0bc68 Bug 740744: Asynchronous dbus events for bluetooth, Start/StopDiscovery and device event firing; r=bent sr=mrbkap 2012-07-17 20:41:54 -07:00
Kyle Machulis
e43e1e8665 Bug 744349 - Create message distribution mechanism for DBus Bluetooth Signals; r=cjones 2012-06-02 11:23:16 -07:00
Kyle Machulis
5ea07200ba Bug 756389 - B2G Bluetooth: unexpected crash in DBusThread::StopEventLoop; r=cjones 2012-05-23 18:21:42 -07:00
Kyle Machulis
1f76f17d72 Backing out Bug 742044 - contained extra patches for another bug 2012-05-23 18:18:24 -07:00
Kyle Machulis
a3821f7a1b Bug 742044 - Create BluetoothManager object for managing multiple adapters and firmware loading; r=bent 2012-05-23 18:06:36 -07:00
Kyle Machulis
00223065fe Bug 753134 - B2G bluetooth interface crashes when trying to remove non-existent dbus watch sockets; r=mwu 2012-05-09 16:33:56 -07:00
Ryan VanderMeulen
3dff13f360 Re-land the patch for bug 732639 after a b2g clobber. 2012-05-07 17:50:25 -04:00
Ryan VanderMeulen
c704b93e25 Backout 7a8607523522 (bug 732639) due to bustage. r=Boot2Fail 2012-05-07 17:21:01 -04:00
Kyle Machulis
4dee4af461 Bug 732639: Create event loop thread for bluetooth dbus on gonk/linux; r=cjones 2012-05-07 14:04:59 -07:00
Ms2ger
904a38aeb8 Backed out changeset db5d4c1aece7 for B2g bustage. 2012-04-14 09:29:41 +02:00
Kyle Machulis
2b841aaa61 Bug 732639: DBus Thread Implementation for B2G Bluetooth r=cjones
--HG--
extra : rebase_source : 564ff82ed63cb02ab99204c572baad6a5e761376
2012-04-13 22:40:09 -07:00