mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Add optional duration parameter to idle()
git-svn-id: https://svn.eduke32.com/eduke32@8149 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/build/include/winlayer.h
This commit is contained in:
parent
a649130327
commit
c86af959b9
1 changed files with 3 additions and 3 deletions
|
@ -90,12 +90,12 @@ static inline void idle_waitevent(void)
|
|||
SDL_WaitEvent(NULL);
|
||||
}
|
||||
|
||||
static inline void idle(void)
|
||||
static inline void idle(int const msec = 1)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
usleep(1000);
|
||||
usleep(msec * 1000);
|
||||
#else
|
||||
Sleep(1);
|
||||
Sleep(msec);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue