diff options
| author | Silent <zdanio95@gmail.com> | 2019-08-31 20:16:16 +0200 |
|---|---|---|
| committer | Silent <zdanio95@gmail.com> | 2019-08-31 21:18:07 +0200 |
| commit | b3969e91d901ae6c30c9fc12c7e457658817903c (patch) | |
| tree | cf5e232e17bac973683d7c0eb982dacb892be347 /Source/Core/VideoCommon/PostProcessing.cpp | |
| parent | b088fc37d5de88b122c3e440319b421de9bee209 (diff) | |
FixedSizeQueue: Bugfixes and improvements
- Fixed a bug where pushing items over queue's size left it in a corrupted state
- For non-trivial types, have clear() and pop() run destructors
- Added emplace(args...)
- Added empty()
FixedSizeQueue has semantics of a circular buffer,
so pushing items continuously is expected to keep overwriting oldest elements gracefully.
Tests have been updated to verify correctness of a previously bugged behaviour
and to verify correctness of destructing non-trivial types
Diffstat (limited to 'Source/Core/VideoCommon/PostProcessing.cpp')
0 files changed, 0 insertions, 0 deletions
