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|. |
||
---|---|---|
.. | ||
nfc_consts.js | ||
Nfc.js | ||
Nfc.manifest | ||
NfcMessageHandler.cpp | ||
NfcMessageHandler.h | ||
NfcOptions.h | ||
NfcService.cpp | ||
NfcService.h | ||
nsINfcService.idl | ||
nsINfcSystemMessage.idl |