diff options
| author | raysan5 <[email protected]> | 2020-05-06 11:33:08 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-05-06 11:33:08 +0200 |
| commit | 526c85773f805c39a593eb348624e4327b106fa3 (patch) | |
| tree | cc5e9071422eb39ed2bf97192d862bb838718af5 /src/core.c | |
| parent | 845596c30a2dbc43344b262617cfc72f44a0aecb (diff) | |
| download | raylib-526c85773f805c39a593eb348624e4327b106fa3.tar.gz raylib-526c85773f805c39a593eb348624e4327b106fa3.zip | |
Replace deprectared usleep() calls
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -5055,10 +5055,7 @@ static void *EventThread(void *arg) #endif } } - else - { - usleep(5000); // Sleep for 5ms to avoid hogging CPU time - } + else Wait(5); // Sleep for 5ms to avoid hogging CPU time } close(worker->fd); @@ -5146,10 +5143,7 @@ static void *GamepadThread(void *arg) } } } - else - { - usleep(1000); //Sleep for 1ms to avoid hogging CPU time - } + else Wait(1); // Sleep for 1 ms to avoid hogging CPU time } } |
