diff options
author | 2008-06-13 00:09:47 +0000 | |
---|---|---|
committer | 2008-06-13 00:09:47 +0000 | |
commit | 114f7e5ffff86daef0a9e9802317e7b259c447f9 (patch) | |
tree | e8ccddec529ca7299c3bbe37e21df40f572696cc /Include/pythread.h | |
parent | add py3k warnings to rfc822 (diff) | |
download | cpython-114f7e5ffff86daef0a9e9802317e7b259c447f9.tar.gz cpython-114f7e5ffff86daef0a9e9802317e7b259c447f9.tar.bz2 cpython-114f7e5ffff86daef0a9e9802317e7b259c447f9.zip |
#1683 prevent forking from interfering in threading storage
This should prevent some test_multiprocessing failures
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 f26db160bf4..b5a6ec38a6e 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 |