all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
To: dhruva <dhruvakm@gmail.com>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: QUERY: w32 sub process implementation
Date: Mon, 20 Aug 2007 00:39:22 +0200	[thread overview]
Message-ID: <87d4xjp2sl.fsf@kfs-lx.testafd.dk> (raw)
In-Reply-To: <e3f230850708191245p780ea802o29aa3b4f98d97527@mail.gmail.com> (dhruva's message of "Mon\, 20 Aug 2007 01\:15\:40 +0530")

dhruva <dhruvakm@gmail.com> writes:

> Hi,
>  In the win32 specific implementation, Emacs creates processes in a
> thread. Every sub process of has a corresponding thread in emacs. The
> thread entry function is reader_thread which reads a char or accepts a
> connection and waits till the char is read by the main emacs
> thread/read-eval-print loop.
>  Using ASYNC read and registering callbacks in wait, I feel we can
> completely do away with threads for sub procs. I would like to have
> your views before I start making large changes (in my local copy). If
> this is not an area of concern, I could concentrate on other portions.

I have had the same idea myself, but didn't pursue it due to the "imminent"
release of 22.1.

It would make the w32 sys_select work much more like the "standard"
select - and at the same time make it handle the write mask (to get
rid of the BROKEN_NON_BLOCKING_CONNECT define in ms-w32.h).

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

      parent reply	other threads:[~2007-08-19 22:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-19 19:45 QUERY: w32 sub process implementation dhruva
2007-08-19 21:16 ` Jason Rumney
2007-08-20  2:19   ` dhruva
2007-08-20  3:23     ` Eli Zaretskii
2007-08-20 15:16   ` Richard Stallman
2007-08-21  8:41     ` Kim F. Storm
2007-08-21  9:09       ` dhruva
2007-08-21  9:25         ` Jason Rumney
2007-08-21  9:18       ` Jason Rumney
2007-08-21 16:30       ` Davis Herring
2007-08-21 23:24       ` Richard Stallman
2007-08-19 22:39 ` Kim F. Storm [this message]

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=87d4xjp2sl.fsf@kfs-lx.testafd.dk \
    --to=storm@cua.dk \
    --cc=dhruvakm@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.