mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
ce37f51133
The main thread writes the NFC thread's field in the NFC service instance, but the function |assertIsNfcServiceThread| uses this value on the NFC worker thread itself. Also clearing this value happens on main, while the NFC thread still executes code. Calls to |assertIsNfcServiceThread| can therefore fail if they occur during an NFC shutdown. This patch replaces the unsafe and racy |assertIsNfcServiceThread| with the much simpler |NfcConsumer::IsNfcServiceThread|. The new method tests the current thread against a thread pointer that has been stored in |NfcConsumer|. |
||
---|---|---|
.. | ||
gonk | ||
messages | ||
tests | ||
moz.build | ||
MozIsoDepTech.cpp | ||
MozIsoDepTech.h | ||
MozNDEFRecord.cpp | ||
MozNDEFRecord.h | ||
NfcContentHelper.js | ||
NfcContentHelper.manifest | ||
nsINfcContentHelper.idl | ||
nsNfc.js | ||
nsNfc.manifest |