summaryrefslogtreecommitdiff
path: root/Include/pystate.h
diff options
context:
space:
mode:
authorNathaniel J. Smith <njs@pobox.com>2018-01-21 06:44:07 -0800
committerYury Selivanov <yury@magic.io>2018-01-21 09:44:07 -0500
commitfc2f407829d9817ddacccae6944dd0879cfaca24 (patch)
tree1775a28a8181975363798f9b3e7cb2bb100e49a2 /Include/pystate.h
parent1211c9a9897a174b7261ca258cabf289815a40d8 (diff)
downloadcpython-git-fc2f407829d9817ddacccae6944dd0879cfaca24.tar.gz
bpo-32591: Add native coroutine origin tracking (#5250)
* Add coro.cr_origin and sys.set_coroutine_origin_tracking_depth * Use coroutine origin information in the unawaited coroutine warning * Stop using set_coroutine_wrapper in asyncio debug mode * In BaseEventLoop.set_debug, enable debugging in the correct thread
Diffstat (limited to 'Include/pystate.h')
-rw-r--r--Include/pystate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index a4815286a7..5a69e1471a 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -262,6 +262,8 @@ typedef struct _ts {
void (*on_delete)(void *);
void *on_delete_data;
+ int coroutine_origin_tracking_depth;
+
PyObject *coroutine_wrapper;
int in_coroutine_wrapper;