From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25384 invoked by alias); 12 Jul 2002 00:44:02 -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 25346 invoked from network); 12 Jul 2002 00:44:00 -0000 Received: from unknown (HELO racerx.ixiacom.com) (64.60.75.69) by sources.redhat.com with SMTP; 12 Jul 2002 00:44:00 -0000 Received: by racerx.ixiacom.com with Internet Mail Service (5.5.2653.19) id <3PQA44TG>; Thu, 11 Jul 2002 17:42:09 -0700 Message-ID: <9A9C83C019F35D47A570460E87D5D8AB0275932F@racerx.ixiacom.com> From: Dan Kegel To: 'Grant Edwards ' , "'gdb@sources.redhat.com '" Cc: "'gdb-patches@sources.redhat.com '" Subject: RE: RDI code busy-waiting on running target? Date: Thu, 11 Jul 2002 19:08:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2002-07/txt/msg00260.txt.bz2 Grant Edwards wrote: > Is usleep() portable? http://sarien.sourceforge.net/hackersguide/intro-portability.html claims no. It uses a timer on some platforms, too, so I'd avoid it anyway. You might consider using select() with no fds to sleep briefly. That's tradition. - Dan