From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Power: blink-cursor-mode is a pig Date: Sat, 31 Dec 2011 09:10:30 +0200 Message-ID: <834nwhtdw9.fsf@gnu.org> References: <4EFCFDCA.6060802@dancol.org> <831urmv30g.fsf@gnu.org> <4EFD826D.2060309@dancol.org> <83pqf6theu.fsf@gnu.org> <677E3CA4-7D51-46AA-A499-0ECCDF828847@math.s.chiba-u.ac.jp> <83k45et6mj.fsf@gnu.org> <73A8B027-572E-4A53-A672-679C6CE689F4@math.s.chiba-u.ac.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1325315496 15996 80.91.229.12 (31 Dec 2011 07:11:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Dec 2011 07:11:36 +0000 (UTC) Cc: dancol@dancol.org, Emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 31 08:11:32 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rgt6J-0007LH-H1 for ged-emacs-devel@m.gmane.org; Sat, 31 Dec 2011 08:11:31 +0100 Original-Received: from localhost ([::1]:32894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rgt6I-0001h3-N3 for ged-emacs-devel@m.gmane.org; Sat, 31 Dec 2011 02:11:30 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rgt6G-0001gx-3n for Emacs-devel@gnu.org; Sat, 31 Dec 2011 02:11:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rgt6E-0000Dd-M4 for Emacs-devel@gnu.org; Sat, 31 Dec 2011 02:11:28 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:52343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rgt6E-0000DZ-Fq for Emacs-devel@gnu.org; Sat, 31 Dec 2011 02:11:26 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LX2002003WOAW00@a-mtaout23.012.net.il> for Emacs-devel@gnu.org; Sat, 31 Dec 2011 09:10:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.18.76]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LX2002N33XF2AB0@a-mtaout23.012.net.il>; Sat, 31 Dec 2011 09:10:29 +0200 (IST) In-reply-to: <73A8B027-572E-4A53-A672-679C6CE689F4@math.s.chiba-u.ac.jp> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147074 Archived-At: > From: YAMAMOTO Mitsuharu > Date: Sat, 31 Dec 2011 12:47:19 +0900 > Cc: dancol@dancol.org, > Emacs-devel@gnu.org > > BTW, stopping/suspending timers does not avoid Emacs to wake up > in a short period on some ports, depending on how its `select' > emulation is implemented. At least, this applies to the NS port > because it does periodic polling inside its `select' > implementation when there are some subprocesses or network > connections. The Mac port does not have this drawback. I'm not > sure about the W32 port. If my reading of w32proc.c is correct, the w32 port blocks inside the call to WaitForMultipleObjects for the same time interval as the timeout specified in the call to `select' (redirected to `sys_select' on w32). But this only blocks the main thread, the one that runs Lisp; the input thread that processes messages delivered to the Emacs frames cannot be blocked (doing so could cause deadlock to the entire system), so it continues running and processing messages.