apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: [PATCH] WIN32 allow destructors for apr_threadkey_private
Date Mon, 21 Aug 2006 15:27:14 GMT
On 8/21/06, Mladen Turk <mturk@apache.org> wrote:
> Garrett Rooney wrote:
> > On 8/21/06, Mladen Turk <mturk@apache.org> 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

Mime
View raw message