aio in win32 .. how?
andreas.raab at gmx.de
Fri Dec 12 17:06:27 UTC 2003
> > Very important details though.
> sorry, I didn't mean that to be flippant.
It wasn't. When I read about this stuff I thought "gee, this is great" until
I tried to use it... ;-)
> btw, do you know that there is a problem with the timer
> resolution for Windows event objects?
(*wisely nodding*) I know.
> Depending on the
> implementation of the Windows NT HAL (I found a paper on the
> web) you can get varying resolution from a call like Sleep(1)
> or waitForSingleObject(event, timeout) that varies from 1ms
> to 16ms. I wrote a test program and ran it on all the
> machines in the office and got really worrying results.
> There is a hack available using timeBeginPeriod(),
> timeEndPeriod() where you can get the linker to link in
> multimedia timers. Windows then does some bodge to improve
> the resolution of your events. It totally sucks. I wasn't
> sure if you had come across this and whether it impacted
> anything in the VM area.
It does. And so we're using the timeBeginPeriod()/timeEndPeriod() hack ;-)
More information about the Squeak-dev