From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4460 invoked by alias); 15 Jul 2002 16:31:23 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4453 invoked from network); 15 Jul 2002 16:31:22 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 15 Jul 2002 16:31:22 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 2A8D13CAA; Mon, 15 Jul 2002 12:31:23 -0400 (EDT) Message-ID: <3D32F8DB.30803@ges.redhat.com> Date: Mon, 15 Jul 2002 09:42:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020708 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Grant Edwards Cc: Momchil Velikov , gdb-patches@sources.redhat.com Subject: Re: RDI code busy-waiting on running target? References: <20020711175854.A29971@visi.com> <20020711184343.A4472@visi.com> <20020712102650.A6637@visi.com> <20020712130727.A7707@visi.com> <3D31AC1D.5060906@ges.redhat.com> <87ele68cd1.fsf@fadata.bg> <3D31BC77.5020700@ges.redhat.com> <20020714225500.A1054@grante.dsl.visi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-07/txt/msg00325.txt.bz2 >> If it is a timeout, it should be waiting for min (time until next >> timeout, gui keep alive delta). > > > Sorry, I've no idea what that means. Care to explain? > > If you want the wait to be for some value other than 10ms, > that's fine with me. I was trying to make the mininum change > possible while still meeting my goal of not sucking up all of > the CPU time. How long do you want it? 20ms? 50ms? 100ms? > > Much longer than 100ms is probably going to be noticable. The code appears to be implementing a timer using polling. Something somewhere must know the intended timer frequency and hence the sleep should be the minimum of: - time to next timer event - frequency that gui wants control Andrew