|
4 | 4 | #include "engine/EngineManager.h" |
5 | 5 | #include "engine/EngineOwnData.h" |
6 | 6 | #include "ll/api/service/GamingStatus.h" |
7 | | -#include "ll/api/thread/ThreadPoolExecutor.h" |
| 7 | +#include "ll/api/thread/ServerThreadExecutor.h" |
8 | 8 | #include "ll/api/coro/CoroTask.h" |
9 | 9 |
|
10 | 10 | #include <ll/api/service/ServerInfo.h> |
@@ -77,7 +77,7 @@ int NewTimeout(Local<Function> func, std::vector<Local<Value>> paras, int timeou |
77 | 77 | } |
78 | 78 | TIMETASK_CATCH("setTimeout-Function"); |
79 | 79 | ClearTimeTask(tid); |
80 | | - }).launch(ll::thread::ThreadPoolExecutor::getDefault()); |
| 80 | + }).launch(ll::thread::ServerThreadExecutor::getDefault()); |
81 | 81 |
|
82 | 82 | std::lock_guard lock(locker); |
83 | 83 | timeTaskMap[tid] = std::move(data); |
@@ -115,7 +115,7 @@ int NewTimeout(Local<String> func, int timeout) { |
115 | 115 | } |
116 | 116 | } |
117 | 117 | TIMETASK_CATCH("setTimeout-String"); |
118 | | - }).launch(ll::thread::ThreadPoolExecutor::getDefault()); |
| 118 | + }).launch(ll::thread::ServerThreadExecutor::getDefault()); |
119 | 119 |
|
120 | 120 | std::lock_guard lock(locker); |
121 | 121 | timeTaskMap[tid] = std::move(data); |
@@ -152,7 +152,7 @@ int NewInterval(Local<Function> func, std::vector<Local<Value>> paras, int timeo |
152 | 152 | } |
153 | 153 | TIMETASK_CATCH("setInterval-Function"); |
154 | 154 | } |
155 | | - }).launch(ll::thread::ThreadPoolExecutor::getDefault()); |
| 155 | + }).launch(ll::thread::ServerThreadExecutor::getDefault()); |
156 | 156 |
|
157 | 157 | std::lock_guard lock(locker); |
158 | 158 | timeTaskMap[tid] = std::move(data); |
@@ -199,7 +199,7 @@ int NewInterval(Local<String> func, int timeout) { |
199 | 199 | } |
200 | 200 | TIMETASK_CATCH("setInterval-String"); |
201 | 201 | } |
202 | | - }).launch(ll::thread::ThreadPoolExecutor::getDefault()); |
| 202 | + }).launch(ll::thread::ServerThreadExecutor::getDefault()); |
203 | 203 |
|
204 | 204 | std::lock_guard lock(locker); |
205 | 205 | timeTaskMap[tid] = std::move(data); |
|
0 commit comments