commit | 114f7e5ffff86daef0a9e9802317e7b259c447f9 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Fri Jun 13 00:09:47 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Fri Jun 13 00:09:47 2008 +0000 |
tree | e8ccddec529ca7299c3bbe37e21df40f572696cc | |
parent | 26305a03e3d501f9338af3f1373f8ec7da88838f [diff] [blame] |
#1683 prevent forking from interfering in threading storage This should prevent some test_multiprocessing failures
diff --git a/Include/pythread.h b/Include/pythread.h index f26db16..b5a6ec3 100644 --- a/Include/pythread.h +++ b/Include/pythread.h
@@ -40,6 +40,9 @@ 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