Message353351
> No, but it means that a type A *knows* that it was created in interpreter 1 without relying on the current thread local storage.
What's wrong with _PyInterpreterState_GET_UNSAFE()?
This macro is based on _Py_atomic_load_relaxed(&_PyRuntime.gilstate.tstate_current).
If this atomic variable is an issue, do we need a better solution to get the current thread state and get the current interpreter? |
|
Date |
User |
Action |
Args |
2019-09-27 09:39:27 | vstinner | set | recipients:
+ vstinner, scoder, christian.heimes, petr.viktorin, eric.snow, steve.dower, ta1hia |
2019-09-27 09:39:27 | vstinner | set | messageid: <1569577167.5.0.332523116692.issue38160@roundup.psfhosted.org> |
2019-09-27 09:39:27 | vstinner | link | issue38160 messages |
2019-09-27 09:39:27 | vstinner | create | |
|