Bug 1203658 - mark Linux's nsNotifyAddrListener::mChildThreadShutdown member as Atomic; r=bagder

Relaxed memory consistency here is OK; the only concern here is that the
child thread eventually goes away, not that it does so immediately after
we've signaled that it should go away.
This commit is contained in:
Nathan Froyd 2015-09-10 23:53:42 -04:00
parent ca174be1a4
commit c99db6f04e

View File

@ -20,6 +20,7 @@
#include "nsIObserver.h"
#include "nsThreadUtils.h"
#include "nsCOMPtr.h"
#include "mozilla/Atomics.h"
#include "mozilla/TimeStamp.h"
class nsNotifyAddrListener : public nsINetworkLinkService,
@ -76,7 +77,7 @@ private:
bool mAllowChangedEvent;
// Flag to signal child thread kill with
bool mChildThreadShutdown;
mozilla::Atomic<bool, mozilla::Relaxed> mChildThreadShutdown;
};
#endif /* NSNOTIFYADDRLISTENER_LINUX_H_ */