emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Support threads in modules


From: Philipp Stephani
Subject: Re: [PATCH] Support threads in modules
Date: Sat, 22 Apr 2017 19:21:35 +0000



Eli Zaretskii <address@hidden> schrieb am Sa., 22. Apr. 2017 um 21:09 Uhr:
> From: Philipp Stephani <address@hidden>
> Date: Sat, 22 Apr 2017 17:24:44 +0200
> Cc: Philipp Stephani <address@hidden>
>
> Rather than checking for the main thread, store the owning thread in
> the module structures and check for it.

Can you explain the purpose of these changes and the motivation?  A
module shouldn't be restricted to be used by a single thread, should
it?


No, but the thread used to create an environment object, the current Emacs thread, and the current OS thread all have to match. Right now this isn't checked; the current code checks only for the main thread, which isn't correct any more now that there can be more than one interpreter thread. 

reply via email to

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