commit | 0b2947b464581b0f6e7426c6a2894494fafba324 | [log] [tgz] |
---|---|---|
author | Glenn Kasten <gkasten@google.com> | Tue Nov 22 14:00:23 2016 -0800 |
committer | Glenn Kasten <gkasten@google.com> | Tue Nov 29 16:15:47 2016 -0800 |
tree | fb2efd62198f0604fb96335f30648379255402d4 | |
parent | 34ad30eb0b4d1625754d131eb2d772d1fa863535 [diff] |
fifo: add shutdown state FIFO is marked shutdown after an "impossible" error is detected. Usually this indicate that memory has become corrupted, or incorrect use of the API. Once the FIFO is marked shutdown, all APIs that can return an error code will return -EIO, and all other APIs will become no-ops. Test: see unit tests in tests/ directory Change-Id: I559145d613c3783a699a9ced062dd5ff3676769d