gecko/dom/nfc/gonk
Thomas Zimmermann ce37f51133 Bug 1173802: Replace |assertIsNfcServiceThread| with thread-safe checks, r=allstars.chh
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|.
2015-07-31 10:07:25 +02:00
..
nfc_consts.js Bug 1168292 - Part 1: update SYSTEM_APP_ID. r=dimi 2015-05-27 11:50:14 +08:00
Nfc.js Bug 1172159 - [NFC] Introduce getFocusTabId function. r=allstars.chh 2015-06-16 04:06:00 -04:00
Nfc.manifest Bug 1115674 - manifest for NfcContentHelper. r=dimi 2014-12-26 20:41:25 +08:00
NfcMessageHandler.cpp Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
NfcMessageHandler.h Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
NfcOptions.h Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
NfcService.cpp Bug 1173802: Replace |assertIsNfcServiceThread| with thread-safe checks, r=allstars.chh 2015-07-31 10:07:25 +02:00
NfcService.h Bug 1173802: Replace |assertIsNfcServiceThread| with thread-safe checks, r=allstars.chh 2015-07-31 10:07:25 +02:00
nsINfcService.idl Bug 1097442 - Part 2: rename nsINfcEventListener. r=dimi 2014-11-12 11:22:36 +08:00
nsINfcSystemMessage.idl Bug 1110059 - IDL for NFC system message. r=dimi 2014-12-11 18:53:27 +08:00