|
From: | Jason Rumney |
Subject: | Re: Pretest next week |
Date: | Wed, 28 Jan 2009 17:34:04 +0800 |
User-agent: | Thunderbird 2.0.0.19 (Windows/20081209) |
Chong Yidong wrote:
Adrian Robert <address@hidden> writes:What is the entry point for detecting the Ctrl-G (or any other user keyboard input), when a tight loop is running, such as (while t t)? Is the SIGIO signal handler used, or is W32 itself asynchronously calling something in w32fns.c or w32term.c on a second thread?I think this is done in the SIGIO signal handler (at least, according to the comment for w32_read_socket in w32fns.c). Jason, could you confirm this?
W32 does not have a SIGIO signal handler, so that comment is probably a copy and paste error. On Windows, a second thread is listening for window system messages. w32_read_socket is the Lisp thread's message handler, C-g detection is done in post_character_message (w32fns.c) which is the point where the input message is posted from the window system message handling thread to the lisp thread.
[Prev in Thread] | Current Thread | [Next in Thread] |