• Jesse Hall's avatar
    Fix race condition in ConsumerBase::addReleaseFence() · 9504eb91
    Jesse Hall authored
    This needs the ConsumerBase mutex locked, but wasn't locking it. Two
    of the four places that called it already held the lock so were fine.
    Now addReleaseFence() takes the lock itself, and I added
    addReleaseFenceLocked() for the two already-locked callers, since in
    one of them dropping the lock would be inconvenient.
    
    Bug: 7289269
    Change-Id: I7a5628adb516f8eec782aa6c14128202f96d7b0a
    9504eb91
BufferItemConsumer.cpp 2.85 KB