diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-12-13 14:59:04 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-12-13 14:59:04 +0000 |
commit | 8a64048a22b42426cc45dfb2d713e295e97c768c (patch) | |
tree | 67b558f89948b345a433ae1045f8c0bfa22be24d /Include/pythread.h | |
parent | e9859df7980e87f1dbad63fa22250a2e212327a4 (diff) | |
download | cpython-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.h | 3 |
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 |