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 193256 306759b08bbffd6fffe33db34b0db9b462b0f98e
parent 193253 e532119b92ab33dfb9d401bc825637547739e88a
child 193259 1c4fdb3d772d085c52792bcfcf72c3426b41b903
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [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