apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Re: [PATCH] WIN32 allow destructors for apr_threadkey_private
Date Tue, 22 Aug 2006 04:16:51 GMT
William A. Rowe, Jr. wrote:
> I had a similar issue with this proposal, and came to a different possible
> solution ... we could run the destructors as part of the thread return
> processing from our apr thread start function when the thread returns control.

Hmm, but this would limit the usage by threads only created with
apr, and in that case one can use thread attributes instead threadkey.

> I also find the table code very ugly... allocating a pool datum to track these
> keys in a hash seems in the global pool seems to make so much more sense.

A performance optimization is fine if it won't cause constant
allocation when the key is created.


View raw message