STINNER Victor added the comment:

> For third-party code, pyatomic.h is only needed by PyThreadState_GET() in 
> pystate.h. Maybe we should hide completly pyatomic.h. Currently, pyatomic.h 
> is not really used if Py_LIMITED_API is defined.

pystate_cplusplus.patch: disable completly pyatomic.h on C++, and modify 
pystate.h: PyThreadState_GET() is just an alias to PyThreadState_Get() with 
compiled with C++.

IMO pystate_cplusplus.patch makes more sense.

I don't understand the purpose of atomicfix.patch or pyatomic_cpp.patch, 
PyThreadState_GET() will not work with these patches.

----------
Added file: http://bugs.python.org/file38519/pystate_cplusplus.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23644>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to