summaryrefslogtreecommitdiff
path: root/Include
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
commit49ecae52127524e2c129425ed6813f5ad8c7d11f (patch)
treef6208b162bb5ae619530cd697973a4e1eda82f05 /Include
parent548ada733f20aff0e67bb051bdcdce79e11171b1 (diff)
downloadcpython-49ecae52127524e2c129425ed6813f5ad8c7d11f.tar.gz
Backport of r64212
Issue #1683: prevent forking from interfering in threading storage.
Diffstat (limited to 'Include')
-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