main: Slow down main thread to avoid taking too much CPU power
This commit is contained in:
parent
4fd8bf9bb8
commit
f5cac7f6d9
1 changed files with 1 additions and 0 deletions
1
main.c
1
main.c
|
@ -38,6 +38,7 @@ int main(int, char**)
|
|||
struct miix_wlr_state* state = miix_wlr_init();
|
||||
|
||||
for (;;) {
|
||||
thrd_sleep(&(struct timespec){0, 10000000UL}, NULL);
|
||||
if (!monitor->data_is_ready) continue;
|
||||
|
||||
if (base_station_detector && base_station_detector->is_connected) {
|
||||
|
|
Loading…
Reference in a new issue