emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Power: blink-cursor-mode is a pig


From: Eli Zaretskii
Subject: Re: Power: blink-cursor-mode is a pig
Date: Sat, 31 Dec 2011 09:10:30 +0200

> From: YAMAMOTO Mitsuharu <address@hidden>
> Date: Sat, 31 Dec 2011 12:47:19 +0900
> Cc: address@hidden,
>  address@hidden
> 
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]