emacs-devel
[Top][All Lists]
Advanced

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

Re: Return value of finished threads


From: Eli Zaretskii
Subject: Re: Return value of finished threads
Date: Fri, 20 Jul 2018 20:25:13 +0300

> From: Clément Pit-Claudel <address@hidden>
> Date: Fri, 20 Jul 2018 12:17:04 -0400
> 
> On the ELisp side, I wonder if it'd make sense to attach a plist to each 
> thread.  With this you would do (thread-put t 'result (returned value)) from 
> the thread, and on the waiting side you'd run thread-join before accessing 
> the result with (thread-get t 'result)

When the thread function returns, the thread is dead, and I'm not sure
we should encourage using plists of dead threads.



reply via email to

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