[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threads



Michael Day wrote:

> Oh you also mentioned complete lack of Win32 compatibility, this is true.
> However a quick #ifdef WIN32 would fix that, an equivalent loop exists in
> Windows, waiting for WM_QUIT instead of SIQQUIT, and using GetMessage() to
> block instead of sigwait(). Ugh.

But you get a heck of a lot more messages from GetMessage() than from
sigwait(), no? I think that even when DirectX "takes over" the keyboard
and mouse, Windows still get the information and sends them to the
application anyway.

-- 
Pierre Phaneuf
Ludus Design, http://ludusdesign.com/
"First they ignore you. Then they laugh at you.
Then they fight you. Then you win." -- Gandhi