Re: [AD] win32 Sleep() ?? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> is it save to call Sleep() directly from my allegro programs ?
Yes, except in callbacks registered with the library.
> or MUST i allegro::yield_timeslice()
yield_timeslice() is equivalent to Sleep(0) on Win32.
> i presume it would be save to Win32::Sleep(0); (yield) as this will
> not block the Windows Message loop, but is it save to Win32::Sleep(
> greater than 0 ); ?
Yes, the message loop runs in another thread than the primary one.
--
Eric Botcazou