mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
InstallZipScreen improvements, small cleanup
This commit is contained in:
1 parent
2bc43810a8
commit
2c0bdcf678
6 files changed
+18
-12
No files matched your search
@@ -129,7 +129,7 @@ void ParallelMemcpy(ThreadManager *threadMan, void *dst, const void *src, size_t
|
||||
|
||||
char *d = (char *)dst;
|
||||
const char *s = (const char *)src;
|
||||
ParallelRangeLoop(threadMan, [&](int l, int h) {
|
||||
ParallelRangeLoop(threadMan, [d, s](int l, int h) {
|
||||
memmove(d + l, s + l, h - l);
|
||||
}, 0, (int)bytes, 128 * 1024, priority);
|
||||
}
|
||||
@@ -145,7 +145,7 @@ void ParallelMemset(ThreadManager *threadMan, void *dst, uint8_t value, size_t b
|
||||
// unknown's testing showed that 128kB is an appropriate minimum size.
|
||||
|
||||
char *d = (char *)dst;
|
||||
ParallelRangeLoop(threadMan, [&](int l, int h) {
|
||||
ParallelRangeLoop(threadMan, [d, value](int l, int h) {
|
||||
memset(d + l, value, h - l);
|
||||
}, 0, (int)bytes, 128 * 1024, priority);
|
||||
}
|
||||
@@ -68,7 +68,7 @@ void ThreadManager::Teardown() {
|
||||
|
||||
// Purge any cancellable tasks while the threads shut down.
|
||||
if (global_->compute_queue_size > 0 || global_->io_queue_size > 0) {
|
||||
auto drainQueue = [&](std::deque<Task *> queue[TASK_PRIORITY_COUNT], std::atomic<int> &size) {
|
||||
auto drainQueue = [this](std::deque<Task *> queue[TASK_PRIORITY_COUNT], std::atomic<int> &size) {
|
||||
for (size_t i = 0; i < TASK_PRIORITY_COUNT; ++i) {
|
||||
for (auto it = queue[i].begin(); it != queue[i].end(); ++it) {
|
||||
if (TeardownTask(*it, false)) {
|
||||
|
||||
Reference in new issue
Block a user