commit | e43060fe260acab9c1f555286652a6dffbf6d36c | [log] [tgz] |
---|---|---|
author | Devin Moore <devinmoore@google.com> | Mon Sep 23 20:08:49 2024 +0000 |
committer | Devin Moore <devinmoore@google.com> | Mon Sep 23 20:23:46 2024 +0000 |
tree | 51d7fcb0789026fbce1848f7f5d2b79280d97fcf | |
parent | ec445d7fac7aeefa2b7745dd4001c015edd4e4e9 [diff] |
Process write overflow with number of elements We want to keep 1/2 of the elements available to read after a write overflow, regardless of the size of the types in the queue. If the queue has only 1 element, we can not leave any elements available to read after an overflow. Test: atest fmq_unit_tests fmq_test Bug: comment from ag/29519872 Change-Id: I9d6cacea1045cbaea1c42c925d2e9bc82ce7785c