[slime-devel] SWANK:LIST-THREADS

Hi, is there any intrinsic reason why LIST-THREADS stores the currently active threads in *THREAD-LIST*? Since we transmit the actual thread ids back to Emacs, we could simply use them to retrieve the thread objects, couldn't we? -T.

"Tobias C. Rittweiler" <tcr@freebits.de> writes:
Hi,
is there any intrinsic reason why LIST-THREADS stores the currently active threads in *THREAD-LIST*? Since we transmit the actual thread ids back to Emacs, we could simply use them to retrieve the thread objects, couldn't we?
I can see it being useful if you also want to display threads that have stopped. But for that, LIST-THREADS should take the UNION between the old *THREAD-LIST* and the list of all currently running threads. I'm not sure I like that, though, as it'll make the Slime Threads buffer fill with garbage from all the stopped LIST-THREAD threads. Opinion? -T.

* Tobias C. Rittweiler [2008-08-08 10:10+0200] writes:
Hi,
is there any intrinsic reason why LIST-THREADS stores the currently active threads in *THREAD-LIST*? Since we transmit the actual thread ids back to Emacs, we could simply use them to retrieve the thread objects, couldn't we?
Yes, that would be simpler. I think when we wrote that we didn't have the thread-id function. Not all implementations have a native thread-id function and we need to emulate it. Helmut.
participants (2)
-
Helmut Eller
-
Tobias C. Rittweiler