emacs-devel
[Top][All Lists]
Advanced

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

Re: list-threads


From: Gemini Lasswell
Subject: Re: list-threads
Date: Sun, 29 Jul 2018 07:31:02 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux)

Michael Albinus <address@hidden> writes:

> If I'm visiting many files (say .../emacs/admin/*), there are as many
> threads as files in that directory, 30+ in this case. Refreshing does
> not work as fast as hoped - sure, the main thread is just one thread
> amongst the other threads. Maybe we need some priorization, that a given
> thread (the main thread here) gets mor hits in thread-yield.

There's a defcustom called thread-list-refresh-seconds which controls
how often the auto refresh happens.  Try setting it to 0.05 instead of
0.5.  I welcome your input on what the default ought to be.

> What happens if you call list-threads from another thread but the main
> one? (Haven't tested myself).

Seems to work fine.  It uses a timer, and those run in the main thread.

> Sounds very useful. On my wishlist would also be edebug support for
> threads, this doesn't work at all.

It's on my wishlist too, and I'm thinking of doing something about it
once I've gained a bit more experience working with threads.



reply via email to

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