On Feb 14, 2010, at 10:50, Andy Wingo wrote: > My only qualm regards the number of potential pthread_key variables. My > current emacs session has about 15K functions and 7K variables. Does the > pthread_key mechanism scale well to this number of thread-local > variables?
Repeating the IRC info, for the rest of the audience: POSIX implementations are allowed to impose a limit of as little as 128 keys. It looks like glibc's limit (PTHREAD_KEYS_MAX) is 1024 on the box I'm looking at, and Mac OS X uses 512. So, no, it won't scale. Ken