mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 1259737 - Make sure BackgroundImpl.cpp's mBoundThread is not used in release builds. r=froydnj
This commit is contained in:
parent
1d4102375a
commit
bf8ece3f4f
@ -341,11 +341,7 @@ class ChildImpl final : public BackgroundChildImpl
|
|||||||
// create the background thread after application shutdown has started.
|
// create the background thread after application shutdown has started.
|
||||||
static bool sShutdownHasStarted;
|
static bool sShutdownHasStarted;
|
||||||
|
|
||||||
#ifdef RELEASE_BUILD
|
#if defined(DEBUG) || !defined(RELEASE_BUILD)
|
||||||
#ifdef DEBUG
|
|
||||||
nsIThread* mBoundThread;
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
nsIThread* mBoundThread;
|
nsIThread* mBoundThread;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -382,7 +378,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
ChildImpl()
|
ChildImpl()
|
||||||
|
#if defined(DEBUG) || !defined(RELEASE_BUILD)
|
||||||
: mBoundThread(nullptr)
|
: mBoundThread(nullptr)
|
||||||
|
#endif
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
, mActorDestroyed(false)
|
, mActorDestroyed(false)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user