diff options
author | 2018-04-11 15:17:49 -0400 | |
---|---|---|
committer | 2018-04-11 15:17:49 -0400 | |
commit | 9f02fa6b2ee1bfac85b20907693c0afdb1d274b5 (patch) | |
tree | bb4612ef85ff77b87b9779a69cccaa35ddd52f42 /Firestore/Source/Public/FIRQuerySnapshot.h | |
parent | 14bcf8ff741c96c76367c5c0afe92be90c2c452f (diff) |
iOS: fix data race in FSTDispatchQueue. (#1070)
operationInProgress is accessed from both the main thread and from
libdispatch on some other thread. Make it atomic to avoid a data race.
Also reorder assertion checks to only access operationInProgress
after making sure the function is running on the queue.
Tested: ran unit tests using old and new versions under Thread
Sanitizer, verified that TSan reports a data race for the old version,
but finds no issues with the new version.
Diffstat (limited to 'Firestore/Source/Public/FIRQuerySnapshot.h')
0 files changed, 0 insertions, 0 deletions