This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Ján Stanček, Thomas Mortensson, cstratak, davin, matrixise, neologix, petr.viktorin, vstinner
Date 2018-05-19.00:20:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526689250.16.0.682650639539.issue29640@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, it seems like I was wrong in my previous comment. Python 2.7 code base is already designed to support native TLS. It's just that we only implement native TLS on Windows. So yeah, it seems doable to implement native TLS for pthread.

History of Py_HAVE_NATIVE_TLS:

commit 8d98d2cb95ac37147a4de5a119869211e8351324
Author: Mark Hammond <mhammond@skippinet.com.au>
Date:   Sat Apr 19 15:41:53 2003 +0000

    New PyGILState_ API - implements pep 311, from patch 684256.

commit 00f2df495a6fcb40d70243c34f296f26ccc72719
Author: Kristján Valur Jónsson <kristjan@ccpgames.com>
Date:   Fri Jan 9 20:03:27 2009 +0000

    Issue 3582.  Improved thread support and TLS for Windows
History
Date User Action Args
2018-05-19 00:20:50vstinnersetrecipients: + vstinner, petr.viktorin, neologix, matrixise, davin, cstratak, Ján Stanček, Thomas Mortensson
2018-05-19 00:20:50vstinnersetmessageid: <1526689250.16.0.682650639539.issue29640@psf.upfronthosting.co.za>
2018-05-19 00:20:50vstinnerlinkissue29640 messages
2018-05-19 00:20:49vstinnercreate