1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-07-01 01:38:44 +00:00

Fix sys-con using 100% of the cpu core 3

This commit is contained in:
cathery 2020-04-21 03:20:17 +03:00
parent 2c77618445
commit e1b3fcc3b0

View File

@ -22,7 +22,7 @@ namespace syscon::config
void ConfigChangedCheckThreadFunc(void *arg); void ConfigChangedCheckThreadFunc(void *arg);
ams::os::StaticThread<0x2'000> g_config_changed_check_thread(&ConfigChangedCheckThreadFunc, nullptr, 0x3F); ams::os::StaticThread<0x2'000> g_config_changed_check_thread(&ConfigChangedCheckThreadFunc, nullptr, 0x3E);
bool is_config_changed_check_thread_running = false; bool is_config_changed_check_thread_running = false;
@ -172,7 +172,7 @@ namespace syscon::config
{ {
WriteToLog("Starting config check thread!"); WriteToLog("Starting config check thread!");
do { do {
if (R_SUCCEEDED(waitSingle(filecheckTimerWaiter, 0))) if (R_SUCCEEDED(waitSingle(filecheckTimerWaiter, UINT64_MAX)))
{ {
if (config::CheckForFileChanges()) if (config::CheckForFileChanges())
{ {