Bug 1000961 - Make DBusReplyHandler use thread-safe ref-counting, r=echou, f=tzimmermann
authorShawn Huang <shuang@mozilla.com>
Tue, 29 Apr 2014 11:13:37 +0800
changeset 180684 c19c41feef8610e4c068580d53e8f6099351e515
parent 180683 23f7d482ca1718a09832ab75d5780d2e53be127f
child 180685 99178af4f61b74c5d75538c82aeed52d14330a59
push id26679
push useremorley@mozilla.com
push dateTue, 29 Apr 2014 16:35:13 +0000
treeherdermozilla-central@34a7215c5d85 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersechou
bugs1000961
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1000961 - Make DBusReplyHandler use thread-safe ref-counting, r=echou, f=tzimmermann
ipc/dbus/DBusUtils.h
--- a/ipc/dbus/DBusUtils.h
+++ b/ipc/dbus/DBusUtils.h
@@ -56,17 +56,17 @@ private:
  * DBusReplyHandler represents a handler for DBus reply messages. Inherit
  * from this class and implement the Handle method. The method Callback
  * should be passed to the DBus send function, with the class instance as
  * user-data argument.
  */
 class DBusReplyHandler
 {
 public:
-  NS_INLINE_DECL_REFCOUNTING(DBusReplyHandler)
+  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(DBusReplyHandler)
 
   /**
    * Implements a call-back function for DBus. The supplied value for
    * aData must be a pointer to an instance of DBusReplyHandler.
    */
   static void Callback(DBusMessage* aReply, void* aData);
 
   /**