From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOlu1-0004pH-Cl for qemu-devel@nongnu.org; Thu, 18 Oct 2012 04:56:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOltr-0000QD-Qe for qemu-devel@nongnu.org; Thu, 18 Oct 2012 04:56:29 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:63118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOltr-0000Q6-KY for qemu-devel@nongnu.org; Thu, 18 Oct 2012 04:56:19 -0400 Received: by mail-pa0-f45.google.com with SMTP id fb10so8167564pad.4 for ; Thu, 18 Oct 2012 01:56:18 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <507FC42C.9090900@redhat.com> Date: Thu, 18 Oct 2012 10:56:12 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1350545426-23172-1-git-send-email-quintela@redhat.com> <1350545426-23172-5-git-send-email-quintela@redhat.com> In-Reply-To: <1350545426-23172-5-git-send-email-quintela@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 04/30] buffered_file: Move from using a timer to use a thread List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org Il 18/10/2012 09:30, Juan Quintela ha scritto: > + } > + if (s->bytes_xfer >= s->xfer_limit) { > + /* usleep expects microseconds */ > + usleep((expire_time - current_time)*1000); > + } g_usleep please. Paolo