am 386ef6da: Merge "Fix another barrier bug 3333866 Atomically update put." into honeycomb
* commit '386ef6da5a95243b4a55b3f760621260e20a5e39': Fix another barrier bug 3333866 Atomically update put.
This commit is contained in:
@@ -100,7 +100,9 @@ void LocklessCommandFifo::commit(uint32_t command, uint32_t sizeInBytes) {
|
||||
//dumpState("commit 1");
|
||||
reinterpret_cast<uint16_t *>(mPut)[0] = command;
|
||||
reinterpret_cast<uint16_t *>(mPut)[1] = sizeInBytes;
|
||||
mPut += ((sizeInBytes + 3) & ~3) + 4;
|
||||
|
||||
int32_t s = ((sizeInBytes + 3) & ~3) + 4;
|
||||
android_atomic_add(s, (int32_t *)&mPut);
|
||||
//dumpState("commit 2");
|
||||
mSignalToWorker.set();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user