summaryrefslogtreecommitdiff
path: root/Include/pythread.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-12-13 14:59:04 +0000
committerMartin v. Löwis <martin@v.loewis.de>2008-12-13 14:59:04 +0000
commit8a64048a22b42426cc45dfb2d713e295e97c768c (patch)
tree67b558f89948b345a433ae1045f8c0bfa22be24d /Include/pythread.h
parente9859df7980e87f1dbad63fa22250a2e212327a4 (diff)
downloadcpython-git-8a64048a22b42426cc45dfb2d713e295e97c768c.tar.gz
Backport of r64212
Issue #1683: prevent forking from interfering in threading storage.
Diffstat (limited to 'Include/pythread.h')
-rw-r--r--Include/pythread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/pythread.h b/Include/pythread.h
index f26db160bf..b5a6ec38a6 100644
--- a/Include/pythread.h
+++ b/Include/pythread.h
@@ -40,6 +40,9 @@ PyAPI_FUNC(int) PyThread_set_key_value(int, void *);
PyAPI_FUNC(void *) PyThread_get_key_value(int);
PyAPI_FUNC(void) PyThread_delete_key_value(int key);
+/* Cleanup after a fork */
+PyAPI_FUNC(void) PyThread_ReInitTLS(void);
+
#ifdef __cplusplus
}
#endif