Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-103323: Get the "Current" Thread State from a Thread-Local Variable #103324

Merged
Prev Previous commit
Next Next commit
Do not fail if thread_local not supported.
  • Loading branch information
ericsnowcurrently committed Apr 7, 2023
commit 9496df0e88bb552967784db6859a39a987cae26f
4 changes: 1 addition & 3 deletions Include/pyport.h
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,7 @@ extern char * _getpty(int *, int, mode_t, int);
# elif defined(__GNUC__) /* includes clang */
# define thread_local __thread
# define HAVE_THREAD_LOCAL 1
# else
// XXX Fall back to the PyThread_tss_*() API.
# error "no supported thread-local variable storage classifier"
// else: fall back to the PyThread_tss_*() API, or ignore.
# endif
# endif
#endif
Expand Down