Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Ian Lance Taylor <ian@airs.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFA: Various Windows (mingw32) additions, mostly relating to select or serial ports
Date: Mon, 06 Feb 2006 04:03:00 -0000	[thread overview]
Message-ID: <20060206040333.GA10822@nevyn.them.org> (raw)
In-Reply-To: <m3k6c9w4ia.fsf@gossamer.airs.com>

On Sun, Feb 05, 2006 at 07:27:41PM -0800, Ian Lance Taylor wrote:
> I guess I had assumed that you were going to have a thread around all
> the time anyhow.  Is creating a thread on Windows so cheap that one
> can do it every time gdb calls select?

Yes, it is that cheap.  But I wasn't clear - we have the thread the
whole time, but we don't rely on it; it goes to sleep and we wake it
when selecting.  It only polls when GDB is idle in a select call for
this fd.

(Actually, I think that it continues to poll for some time afterwards
until the next byte of data does arrive on that pipe, or the pipe's
closed.  That's just because (A) it's cheap, and (B) I had no other
reason to have a cleanup hook after the end of select.)

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-02-06  4:03 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-03 22:05 Daniel Jacobowitz
2006-02-03 22:08 ` Daniel Jacobowitz
2006-02-04 12:43   ` Eli Zaretskii
2006-02-04 15:13     ` Daniel Jacobowitz
2006-02-04  6:28 ` Ian Lance Taylor
2006-02-04 10:30   ` Eli Zaretskii
2006-02-04 17:06     ` Ian Lance Taylor
2006-02-04 17:45       ` Eli Zaretskii
2006-02-04 15:00   ` Daniel Jacobowitz
2006-02-05  0:01     ` Ian Lance Taylor
2006-02-05 22:00       ` Daniel Jacobowitz
2006-02-06  3:27         ` Ian Lance Taylor
2006-02-06  4:03           ` Daniel Jacobowitz [this message]
2006-02-04 12:38 ` Eli Zaretskii
2006-02-04 15:11   ` Daniel Jacobowitz
2006-02-04 15:23     ` Eli Zaretskii
2006-02-04 15:30       ` Daniel Jacobowitz
2006-02-06 21:02 ` Daniel Jacobowitz
2006-02-06 23:02   ` Mark Kettenis
2006-02-06 23:17     ` Daniel Jacobowitz
2006-02-06 23:21     ` Christopher Faylor
2006-02-09 22:38     ` Daniel Jacobowitz
2006-02-10  7:53       ` Eli Zaretskii
2006-02-10 20:46       ` Mark Kettenis
2006-02-10 22:02         ` Daniel Jacobowitz
2006-02-07  4:41   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060206040333.GA10822@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=ian@airs.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox