Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Christopher Faylor <me@cgf.cx>
To: Mark Mitchell <mark@codesourcery.com>,
	gdb-patches@sources.redhat.com,
	"M.M. Kettenis" <m.m.kettenis@alumnus.utwente.nl>,
	Ian Lance Taylor <ian@airs.com>
Subject: Re: PATCH: Support Windows in event-loop.c
Date: Mon, 25 Apr 2005 16:24:00 -0000	[thread overview]
Message-ID: <20050425162359.GF6543@trixie.casa.cgf.cx> (raw)
In-Reply-To: <m3y8b67sb3.fsf@gossamer.airs.com>

On Mon, Apr 25, 2005 at 12:08:16PM -0400, Ian Lance Taylor wrote:
>> > Ok...  So, is it acceptable to include a console-only implementation in
>> > event-loop.c?  I would think that it wasn't.
>> > That seems to suggest that some kind of generic select or poll
>> > implementation needs to be developed, probably using threads.
>> 
>> Over my dead body (the threads part that is).
>
>It has to be done with threads on Windows.  But the threads don't
>escape from the select emulation.  They are just tiny little threads
>which sit around waiting for something to happen on a file descriptor,
>and which post an event when it does.

If we were comfortable with the concept of polling, I don't see any
reason why this couldn't be done in a polling loop rather than using
threads.  If polling isn't an option then the only way to do this
is with threads.

The cygwin select code might provide a clue as to how we do some of this
but I think there might be ownership issues with using it in gdb.  I'd
have no problem including it but getting someone at Red Hat to focus on
the issue long enough to provide a statement of assent would probably be
difficult.

cgf


  reply	other threads:[~2005-04-25 16:24 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-21  5:53 Mark Mitchell
2005-04-21 18:46 ` Eli Zaretskii
2005-04-21 18:49   ` Daniel Jacobowitz
2005-04-21 18:56   ` Mark Mitchell
2005-04-21 20:30     ` Eli Zaretskii
2005-04-21 20:56       ` Daniel Jacobowitz
2005-04-21 21:15         ` Mark Mitchell
2005-04-22  8:26           ` Eli Zaretskii
2005-04-22 12:08             ` Christopher Faylor
2005-04-22 13:23               ` Eli Zaretskii
2005-04-22 15:04                 ` Christopher Faylor
2005-04-22 15:14                   ` Ian Lance Taylor
2005-04-22 15:28                     ` Christopher Faylor
2005-04-22 15:52               ` Mark Mitchell
2005-04-22  8:16         ` Eli Zaretskii
2005-04-24 22:18           ` Daniel Jacobowitz
2005-04-24 22:30             ` Mark Kettenis
2005-04-25  0:04               ` Mark Mitchell
2005-04-24 23:57             ` Mark Mitchell
2005-04-25  4:25               ` Christopher Faylor
2005-04-25 13:16                 ` Daniel Jacobowitz
2005-04-25 14:50                   ` Christopher Faylor
2005-04-25 14:59                     ` Mark Mitchell
2005-04-25 15:04                       ` Daniel Jacobowitz
2005-04-25 15:18                         ` Mark Mitchell
2005-04-25 15:23                           ` Daniel Jacobowitz
2005-04-25 15:26                             ` Mark Mitchell
2005-04-25 15:36                               ` Daniel Jacobowitz
2005-04-25 16:44                                 ` Eli Zaretskii
2005-04-25 20:23                                 ` Mark Mitchell
2005-04-25 21:07                                   ` Eli Zaretskii
2005-04-25 21:49                                     ` Mark Mitchell
2005-04-25 22:00                                       ` Mark Kettenis
2005-04-25 22:09                                         ` Mark Mitchell
2005-04-25 22:29                                           ` Mark Kettenis
2005-04-25 22:47                                             ` Mark Mitchell
2005-04-26  3:55                                             ` Eli Zaretskii
2005-04-25 23:16                                       ` Christopher Faylor
2005-04-25 23:20                                         ` Mark Mitchell
2005-04-25 23:33                                           ` Christopher Faylor
2005-04-26  0:21                                             ` Mark Mitchell
2005-04-26  3:58                                           ` Eli Zaretskii
2005-04-26  3:59                                             ` Mark Mitchell
2005-04-25 15:50                               ` Ian Lance Taylor
2005-04-26  3:49                         ` Eli Zaretskii
2005-04-26 13:17                           ` Daniel Jacobowitz
2005-04-25 15:52                     ` M.M. Kettenis
2005-04-25 16:00                       ` Daniel Jacobowitz
2005-04-25 16:08                       ` Ian Lance Taylor
2005-04-25 16:24                         ` Christopher Faylor [this message]
2005-04-25 17:08                       ` Mark Mitchell
2005-04-25 21:04                         ` Eli Zaretskii
2005-04-25 16:42                     ` Eli Zaretskii
2005-04-21 21:01     ` Christopher Faylor
2005-04-21 21:03       ` Christopher Faylor

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=20050425162359.GF6543@trixie.casa.cgf.cx \
    --to=me@cgf.cx \
    --cc=gdb-patches@sources.redhat.com \
    --cc=ian@airs.com \
    --cc=m.m.kettenis@alumnus.utwente.nl \
    --cc=mark@codesourcery.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