Bug 1191253 - Start the "Link Monitor" thread appropriately. r=mcmanus
authorDaniel Stenberg <daniel@haxx.se>
Wed, 05 Aug 2015 03:13:00 -0400
changeset 288348 fea6620f36b8e408aaf22614cb7131ae5c139ef3
parent 288347 c5669c73fabdf6fcbe44ae75b35875dc8d561303
child 288349 2e1b414266f1f89ac43aaa5f8ec3025b96d85985
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus
bugs1191253
milestone42.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 1191253 - Start the "Link Monitor" thread appropriately. r=mcmanus
netwerk/system/linux/nsNotifyAddrListener_Linux.cpp
--- a/netwerk/system/linux/nsNotifyAddrListener_Linux.cpp
+++ b/netwerk/system/linux/nsNotifyAddrListener_Linux.cpp
@@ -309,17 +309,17 @@ nsNotifyAddrListener::Init(void)
 
     nsresult rv = observerService->AddObserver(this, "xpcom-shutdown-threads",
                                                false);
     NS_ENSURE_SUCCESS(rv, rv);
 
     Preferences::AddBoolVarCache(&mAllowChangedEvent,
                                  NETWORK_NOTIFY_CHANGED_PREF, true);
 
-    rv = NS_NewNamedThread("Link Monitor", getter_AddRefs(mThread));
+    rv = NS_NewNamedThread("Link Monitor", getter_AddRefs(mThread), this);
     NS_ENSURE_SUCCESS(rv, rv);
 
 #ifdef MOZ_NUWA_PROCESS
     nsCOMPtr<nsIRunnable> runner = new NuwaMarkLinkMonitorThreadRunner();
     mThread->Dispatch(runner, NS_DISPATCH_NORMAL);
 #endif
 
     if (-1 == pipe(mShutdownPipe)) {