[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
i was a little concerned when i read the win32 docs (MSDN) for Sleep()...
"You have to be careful when using Sleep and code that directly or
indirectly creates windows. If a thread creates any windows, it must
process messages. Message broadcasts are sent to all windows in the system.
If you have a thread that uses Sleep with infinite delay, the system will
deadlock. "
is it save to call Sleep() directly from my allegro programs ?
or MUST i allegro::yield_timeslice()
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 ); ?