aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core
diff options
context:
space:
mode:
authorGravatar Konstantin Varlamov <var-const@users.noreply.github.com>2018-04-11 15:17:49 -0400
committerGravatar GitHub <noreply@github.com>2018-04-11 15:17:49 -0400
commit9f02fa6b2ee1bfac85b20907693c0afdb1d274b5 (patch)
treebb4612ef85ff77b87b9779a69cccaa35ddd52f42 /Firestore/core
parent14bcf8ff741c96c76367c5c0afe92be90c2c452f (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/core')
0 files changed, 0 insertions, 0 deletions