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 192231 306759b08bbf
parent 192228 e532119b92ab
child 192234 1c4fdb3d772d
push id3534
push userryanvm@gmail.com
push date2014-05-08 18:01 +0000
treeherdermozilla-beta@306759b08bbf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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