mirror of
https://github.com/cathery/sys-con.git
synced 2024-11-16 23:11:25 +00:00
Fix sys-con using 100% of the cpu core 3
This commit is contained in:
parent
10b0d3a499
commit
d1bce55c9f
@ -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())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user