Message79238
No, the startup function for beginthreadex() must be __stdcall. From
the docs:
start_address
Start address of a routine that begins execution of a new thread. For
_beginthread, the calling convention is either __cdecl or __clrcall;
for _beginthreadex, it is either __stdcall or __clrcall.
(__clrcall is for managed code which doesn't apply).
Do not confuse beginthreadex() with CreateThread even though they have
similar arguments. The former is for use with programs using the crt.
See http://msdn.microsoft.com/en-us/library/kdzttdcb.aspx for details.
Amaury, Where did you find the value 1088 for maximum TLS slots? The
documentation mentions the error condidion TLS_OUT_OF_INDEXES (which I
should check for, I suppose), but nothing else. |
|
Date |
User |
Action |
Args |
2009-01-06 09:03:51 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, amaury.forgeotdarc, eckhardt |
2009-01-06 09:03:51 | kristjan.jonsson | set | messageid: <1231232631.84.0.496831809734.issue3582@psf.upfronthosting.co.za> |
2009-01-06 09:03:51 | kristjan.jonsson | link | issue3582 messages |
2009-01-06 09:03:50 | kristjan.jonsson | create | |
|