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 181153 c19c41feef8610e4c068580d53e8f6099351e515
parent 181152 23f7d482ca1718a09832ab75d5780d2e53be127f
child 181154 99178af4f61b74c5d75538c82aeed52d14330a59
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersechou
bugs1000961
milestone32.0a1
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);
 
   /**