On 8/21/06, Mladen Turk <[EMAIL PROTECTED]> wrote:
Garrett Rooney wrote:
> On 8/21/06, Mladen Turk <[EMAIL PROTECTED]> wrote:
>
> One comment, where did the number 1088 come from? Should probably
> replace it with a #define or something in any event.
>
1088 comes from the MSDN:
The constant TLS_MINIMUM_AVAILABLE defines the minimum number of TLS
indexes available in each process. This minimum is guaranteed to be at
least 64 for all systems. The limits are as follows:
System Limit
Windows Server 2003, Windows XP, and Windows 2000 1088 indexes per process
Windows Me/98 80 indexes per process
Windows NT and Windows 95 64 indexes per process
It's the minimum available? In practice, is that equal to the maximum
available as well? Either way, it seems like a #define with a comment
explaining the source of the value is in order.
-garrett