mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
sys: Replaced awful task system with a much more efficient thread pool
This commit is contained in:
@@ -302,7 +302,7 @@ namespace hex::plugin::windows {
|
||||
if (this->m_transmitting)
|
||||
return;
|
||||
|
||||
auto transmitThread = std::thread([&, this] {
|
||||
TaskManager::createBackgroundTask("Transmitting data", [&, this](auto&) {
|
||||
OVERLAPPED overlapped = { };
|
||||
|
||||
overlapped.hEvent = ::CreateEvent(nullptr, true, false, nullptr);
|
||||
@@ -322,7 +322,6 @@ namespace hex::plugin::windows {
|
||||
|
||||
this->m_transmitting = false;
|
||||
});
|
||||
transmitThread.detach();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user