Bug 1112307 - Use a thread-safe ChannelEventQueue. r=jduell
authorAndrea Marchesini <amarchesini@mozilla.com>
Mon, 05 Jan 2015 17:31:19 -0500
changeset 222139 8ef1de3364d77bf56d49e2c25171292703843750
parent 222138 73eadfc19bba78adaba9cef4e9b38decce37b030
child 222140 0dfb8c9e7e64557f983c6930441c8fb1550c7bfc
push id28059
push userryanvm@gmail.com
push dateTue, 06 Jan 2015 15:53:01 +0000
treeherdermozilla-central@4d91c33b351c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjduell
bugs1112307
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1112307 - Use a thread-safe ChannelEventQueue. r=jduell
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) {}