Implement cached thread pool

This commit is contained in:
topjohnwu
2021-08-24 02:39:54 -07:00
parent b591af7803
commit 0cd99712fa
7 changed files with 90 additions and 23 deletions
+1 -1
View File
@@ -185,6 +185,6 @@ void start_log_daemon() {
int fds[2];
if (pipe2(fds, O_CLOEXEC) == 0) {
logd_fd = fds[1];
new_daemon_thread([fd = fds[0]] { logfile_writer(fd); });
exec_task([fd = fds[0]] { logfile_writer(fd); });
}
}