mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
sys: Replaced awful task system with a much more efficient thread pool
This commit is contained in:
@@ -61,7 +61,7 @@ namespace hex::init {
|
||||
|
||||
try {
|
||||
if (async) {
|
||||
std::thread(runTask).detach();
|
||||
TaskManager::createBackgroundTask(name, [runTask](auto&){ runTask(); });
|
||||
} else {
|
||||
runTask();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user