Le mar. 17 mars 2020 à 15:49, Mark Shannon <m...@hotpy.org> a écrit :
> > * https://bugs.python.org/issue10915
> > * https://bugs.python.org/issue15751
> >
> > It's unclear to me if fixing this issue would require to add a lock,
> > nor if it would make PyGILState_GetThisThreadState() or
> > _PyThreadState_GET() slower.
>
> It doesn't require a lock, and it is only two instructions (it's 5
> instructions on Windows, but that's still cheap).

I'm not sure that I understand what you mean. Do you have a fix for
these issues, to be able to use this API in subinterpreters?

I asked if fixing these issues may need to add another lock or atomic variable.

Victor
-- 
Night gathers, and now my watch begins. It shall not end until my death.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/YCF4JK6GIM6M7ZVBLTA4E4NFFWDVDIBJ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to