|
From: | Elefterios Stamatogiannakis |
Subject: | Re: [Qemu-devel] [patch] non-blocking disk IO |
Date: | Tue, 04 Oct 2005 11:52:46 +0300 |
User-agent: | Thunderbird 1.4.1 (Windows/20051003) |
Thanks for the info.
#ifdef WIN32 void usleep(unsigned long usec) { Sleep(usec/1000); } #endif
The division "usec/1000" is an expensive operation on any processor.Maybe it would be better just to use "_sleep(1)" which is analogous to usleep(1000) ?
This is what i did to have it compiled and it worked like a charm. teris.
[Prev in Thread] | Current Thread | [Next in Thread] |