Bug 1000961 - Make DBusReplyHandler use thread-safe ref-counting. r=echou, a=sledru
authorShawn Huang <shuang@mozilla.com>
Thu, 08 May 2014 14:00:48 -0400
changeset 180434 306759b08bbffd6fffe33db34b0db9b462b0f98e
parent 180433 e532119b92ab33dfb9d401bc825637547739e88a
child 180435 1c4fdb3d772d085c52792bcfcf72c3426b41b903
push idunknown
push userunknown
push dateunknown
reviewersechou, sledru
bugs1000961
milestone30.0
Bug 1000961 - Make DBusReplyHandler use thread-safe ref-counting. r=echou, a=sledru
ipc/dbus/DBusUtils.h
--- a/ipc/dbus/DBusUtils.h
+++ b/ipc/dbus/DBusUtils.h
@@ -53,17 +53,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 mozilla::RefCounted<DBusReplyHandler>
+class DBusReplyHandler : public mozilla::AtomicRefCounted<DBusReplyHandler>
 {
 public:
   MOZ_DECLARE_REFCOUNTED_TYPENAME(DBusReplyHandler)
   virtual ~DBusReplyHandler() {
   }
 
   /**
    * Implements a call-back function for DBus. The supplied value for