multi thread game dumps and file uploads.
previous uploads were all single threaded, which meant that it only uploaded as fast as the slowest source. usb transfer is still single threaded due it being random access for both files and data, making it hard for the read thread to run freely.
This commit is contained in:
@@ -38,6 +38,7 @@ ProgressBox::ProgressBox(int image, const std::string& action, const std::string
|
||||
m_action = action;
|
||||
m_image = image;
|
||||
|
||||
m_cpuid = cpuid;
|
||||
m_thread_data.pbox = this;
|
||||
m_thread_data.callback = callback;
|
||||
if (R_FAILED(threadCreate(&m_thread, threadFunc, &m_thread_data, nullptr, stack_size, prio, cpuid))) {
|
||||
|
||||
Reference in New Issue
Block a user