mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-04-21 21:52:06 +02:00
Rate limit Settings::background_monitor.
This commit is contained in:
parent
c81c506b97
commit
bfb56db87d
1 changed files with 3 additions and 0 deletions
|
@ -377,6 +377,8 @@ void Settings::background_monitor_entry(Settings * settings) {
|
|||
return;
|
||||
}
|
||||
|
||||
#define BACKGROUND_MONITOR_RATE 200
|
||||
|
||||
void Settings::background_monitor() {
|
||||
bool exit = false;
|
||||
do {
|
||||
|
@ -418,6 +420,7 @@ void Settings::background_monitor() {
|
|||
}
|
||||
}
|
||||
}
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(BACKGROUND_MONITOR_RATE));
|
||||
}
|
||||
}
|
||||
} while(!exit);
|
||||
|
|
Loading…
Add table
Reference in a new issue