Bug 1112307 - Use a thread-safe ChannelEventQueue. r=jduell, a=abillings
authorAndrea Marchesini <amarchesini@mozilla.com>
Mon, 05 Jan 2015 17:31:19 -0500
changeset 242709 d9d452aaf74cc5e80fc795d317ace15aa32db82e
parent 242708 fa28e105b2baf86dabdb2bc693ec270c618307e3
child 242710 aeb8189b138a862189affeae64d6415b0d29bdcf
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjduell, abillings
bugs1112307
milestone36.0a2
Bug 1112307 - Use a thread-safe ChannelEventQueue. r=jduell, a=abillings
netwerk/ipc/ChannelEventQueue.h
--- a/netwerk/ipc/ChannelEventQueue.h
+++ b/netwerk/ipc/ChannelEventQueue.h
@@ -32,17 +32,17 @@ class ChannelEvent
 // event loop (ex: IPDL rpc) could cause listener->OnDataAvailable (for
 // instance) to be dispatched and called before mListener->OnStartRequest has
 // completed.
 
 class AutoEventEnqueuerBase;
 
 class ChannelEventQueue MOZ_FINAL
 {
-  NS_INLINE_DECL_REFCOUNTING(ChannelEventQueue)
+  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(ChannelEventQueue)
 
  public:
   explicit ChannelEventQueue(nsISupports *owner)
     : mSuspendCount(0)
     , mSuspended(false)
     , mForced(false)
     , mFlushing(false)
     , mOwner(owner) {}