DescriptionIn skia_test.cc, atomics -> mutex.
These guys are not heavily contended nor speed critical. No need for atomics,
plus this makes tsan stop complaining (correctly) about reading fNextIndex
unsafely in onEnd.
I took a look at failCount/fFailCount, which I think is safely atomic and quite
conveniently so: It's never read until all the threads which could possibly
increment it have terminated (except for the one where it was created,
obviously). We could guard it with a mutex too, but maybe we can let this one
slide.
BUG=
Committed: http://code.google.com/p/skia/source/detail?r=11561
Patch Set 1 #Patch Set 2 : comments #
Total comments: 2
Patch Set 3 : rename #Messages
Total messages: 5 (0 generated)
|