[issue3582] thread_nt.c update

2009-01-19 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Note, this has been ported to py3k in http://svn.python.org/view?
view=revrev=68543

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3582
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3582] thread_nt.c update

2009-01-12 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Please add a Misc/NEWS entry for this change.

--
assignee:  - krisvale
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3582
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3582] thread_nt.c update

2009-01-12 Thread Martin v. Löwis

Changes by Martin v. Löwis mar...@v.loewis.de:


--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3582
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3582] thread_nt.c update

2009-01-09 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Committed this as revision: 68455

--
resolution:  - accepted
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3582
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3582] thread_nt.c update

2009-01-09 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Windows NT (3.1, and a number of later versions) only support 64 TLS
keys. Starting with Windows 2000, they added another page per thread for
TLS, giving an addition 1024 TLS slots, for a total of 1088 TLS slots.
FWIW, Win 9.x supported 80 TLS slots. See

http://www.nynaeve.net/?p=181
http://msdn.microsoft.com/en-us/library/ms686749.aspx
http://bugs.python.org/file11141/thread_nt.patch

TLS slots are typically considered a scarce resource, so that
programming language implementations typically don't allow applications
direct allocation of TLS slots. Instead, most runtimes I know of will
allocate a single TLS slot for themselves, which then is filled with an
array or a dictionary.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3582
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3582] thread_nt.c update

2009-01-06 Thread Ulrich Eckhardt

Ulrich Eckhardt eckha...@satorlaser.com added the comment:

I do have an issue with the patch's startup code. The prototype for 
the thread entry should be DWORD WINAPI function(PVOID);. The 
important distinction is the WINAPI part, which resolves to __stdcall 
but doesn't have to. I know that some CE targets actually #define 
__cdecl __stdcall or vice versa, but using WINAPI always works. I'd 
then also change the comment to ...to adapt between our function 
signature and the one used by _createthreadex, as the internally used 
one doesn't mention __cdecl.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3582
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3582] thread_nt.c update

2009-01-06 Thread Ulrich Eckhardt

Ulrich Eckhardt eckha...@satorlaser.com added the comment:

You're right, Kristján, sorry for the noise. Shouldn't make claims 
before being fully awake

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3582
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3582] thread_nt.c update

2009-01-05 Thread Ulrich Eckhardt

Ulrich Eckhardt eckha...@satorlaser.com added the comment:

No, CreateThread() is not a suitable replacement, because it lacks 
some initialisations of the C library, as explained in the MSDN: 
http://msdn.microsoft.com/en-us/library/ms682453(VS.85).aspx

--
nosy: +eckhardt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3582
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3582] thread_nt.c update

2009-01-05 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

You are right. 
(My dream is someday to completely get rid of this msvcrt stuff. Only
pure Win32 API)

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3582
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3582] thread_nt.c update

2008-08-17 Thread Kristján Valur Jónsson

New submission from Kristján Valur Jónsson [EMAIL PROTECTED]:

Here is a suggested update to thread_nt.c.  It has two significant 
changes:
1) it uses the new and safer _beginthreadex API to start a thread
2) it implements native TLS functions on NT, which are certain to be as 
fast as possible.

--
files: thread_nt.patch
keywords: patch, patch
messages: 71289
nosy: krisvale
severity: normal
status: open
title: thread_nt.c update
type: feature request
versions: Python 3.0
Added file: http://bugs.python.org/file11141/thread_nt.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3582
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com