From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Sat, 22 Apr 2017 19:21:35 +0000
> Cc: emacs-dev= el@gnu.org, phst@g= oogle.com
>
>=C2=A0 Can you explain the purpose of these changes and the motivation?= A
>=C2=A0 module shouldn't be restricted to be used by a single thread= , should
>=C2=A0 it?
>
> No, but the thread used to create an environment object, the current E= macs 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 threa= d.
I agree that checking for the main thread is not TRT, but why not
allow any thread of those in all_threads?=C2=A0 Why do we care that the env=
pointer was created by the same thread as the one using it?=C2=A0 We should=
only care that the invoking thread is one of the Emacs application
threads, no?