diff options
| author | Victor Stinner <vstinner@redhat.com> | 2018-08-03 13:33:52 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-03 13:33:52 (GMT) |
| commit | caba55b3b735405b280273f7d99866a046c18281 (patch) | |
| tree | 3a98ac383b1fbab272158933255fb1a14107ebf6 /Python/thread.c | |
| parent | 2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1 (diff) | |
| download | cpython-caba55b3b735405b280273f7d99866a046c18281.zip cpython-caba55b3b735405b280273f7d99866a046c18281.tar.gz cpython-caba55b3b735405b280273f7d99866a046c18281.tar.bz2 | |
bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592)
sys_setcheckinterval() now uses a local variable to parse arguments,
before writing into interp->check_interval.
Diffstat (limited to 'Python/thread.c')
| -rw-r--r-- | Python/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread.c b/Python/thread.c index 0774384..a1e1fa6 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -92,7 +92,7 @@ PyThread_init_thread(void) size_t PyThread_get_stacksize(void) { - return PyThreadState_GET()->interp->pythread_stacksize; + return _PyInterpreterState_Get()->pythread_stacksize; } /* Only platforms defining a THREAD_SET_STACKSIZE() macro |
