mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
ca174be1a4
commit
c99db6f04e
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user