Previous | Next --- Slide 43 of 46
Back to Lecture Thumbnails
perpendorthogon

Why is diff[(index+1)%3] not in the lock statement?

itsalex

I think it is because there isn't any data race if every thread is writing the value 0.0f to diff[(index+1)%3]