mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-28 01:29:45 +00:00
Implement cached thread pool
This commit is contained in:
@@ -144,8 +144,8 @@ static void handle_request(int client) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
// Create new thread to handle complex requests
|
||||
new_daemon_thread([=] { handle_request_async(client, code, cred); });
|
||||
// Handle complex requests in another thread
|
||||
exec_task([=] { handle_request_async(client, code, cred); });
|
||||
return;
|
||||
|
||||
done:
|
||||
|
||||
Reference in New Issue
Block a user