[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The event handling thread
From: |
John Wiegley |
Subject: |
Re: The event handling thread |
Date: |
Tue, 20 Dec 2016 17:04:36 -0800 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.90 (darwin) |
>>>>> Eli Zaretskii <address@hidden> writes:
> To see the above machinery in action, try this:
> (defun infloop ()
> (with-temp-buffer (while t (insert "foo"))))
> (make-thread #'infloop "thread-loop")
> As soon as you start the looping thread, any keyboard input, like M-x or
> cursor motion commands, doesn't have any effect, until you type C-g (which
> causes the looping thread to exit), because the looping thread never yields.
Ah, this is the bit I was missing. It's clear to me now, thanks.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
- Threading IO-bound functions, Elias Mårtenson, 2016/12/14
- Re: Threading IO-bound functions, Eli Zaretskii, 2016/12/16
- Re: Threading IO-bound functions, Elias Mårtenson, 2016/12/18
- Re: Threading IO-bound functions, Eli Zaretskii, 2016/12/18
- Re: Threading IO-bound functions, Elias Mårtenson, 2016/12/19
- Re: Threading IO-bound functions, Eli Zaretskii, 2016/12/19
- The event handling thread (was: Threading IO-bound functions), John Wiegley, 2016/12/19
- Re: The event handling thread (was: Threading IO-bound functions), Eli Zaretskii, 2016/12/20
- Re: The event handling thread,
John Wiegley <=
- Re: The event handling thread, Elias Mårtenson, 2016/12/21
- Re: The event handling thread, Eli Zaretskii, 2016/12/21
- Re: The event handling thread, Elias Mårtenson, 2016/12/21
- Re: The event handling thread, Eli Zaretskii, 2016/12/22
Re: Threading IO-bound functions, Ken Raeburn, 2016/12/16