mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-11 15:59:11 +01:00
Allow mutation of input data by callback in CircularQueue::AppendTranform
This commit is contained in:
parent
7c9212743c
commit
054d32567d
@ -126,7 +126,7 @@ namespace skyline {
|
|||||||
template<typename TransformedType, typename Transformation>
|
template<typename TransformedType, typename Transformation>
|
||||||
void AppendTranform(span <TransformedType> buffer, Transformation transformation) {
|
void AppendTranform(span <TransformedType> buffer, Transformation transformation) {
|
||||||
std::unique_lock lock(productionMutex);
|
std::unique_lock lock(productionMutex);
|
||||||
for (const auto &item : buffer) {
|
for (auto &item : buffer) {
|
||||||
auto next{end + 1};
|
auto next{end + 1};
|
||||||
next = (next == reinterpret_cast<Type *>(vector.end().base())) ? reinterpret_cast<Type *>(vector.begin().base()) : next;
|
next = (next == reinterpret_cast<Type *>(vector.end().base())) ? reinterpret_cast<Type *>(vector.begin().base()) : next;
|
||||||
if (next == start) {
|
if (next == start) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user