From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMidE-00060A-Ji for qemu-devel@nongnu.org; Tue, 04 Oct 2005 04:58:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMiZC-0005nT-J3 for qemu-devel@nongnu.org; Tue, 04 Oct 2005 04:54:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMiXg-0005Gg-H0 for qemu-devel@nongnu.org; Tue, 04 Oct 2005 04:52:58 -0400 Received: from [147.102.222.230] (helo=ulysses.noc.ntua.gr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EMiXg-0001Re-9a for qemu-devel@nongnu.org; Tue, 04 Oct 2005 04:52:56 -0400 Message-ID: <434242DE.40906@dblab.ece.ntua.gr> Date: Tue, 04 Oct 2005 11:52:46 +0300 From: Elefterios Stamatogiannakis MIME-Version: 1.0 Subject: Re: [Qemu-devel] [patch] non-blocking disk IO References: <4340D479.7030301@stanfordalumni.org> <434100A3.5030104@dblab.ece.ntua.gr> <46d6db660510030558y3413a698ra74d5a270de58bf2@mail.gmail.com> <43422C99.2010300@stanfordalumni.org> In-Reply-To: <43422C99.2010300@stanfordalumni.org> Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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.