16 Aug 2004 14:47
ThreadSpecificData improvement.
Christophe de VIENNE <cdevienne <at> alphacent.com>
2004-08-16 12:47:31 GMT
2004-08-16 12:47:31 GMT
Curt Arnold a écrit : > > On Aug 13, 2004, at 9:44 AM, Christophe de VIENNE wrote: > >> Any idea/suggestion welcome, >> >> > > Not directly on point, but I had a couple of random, unconsidered > thoughts related to threads that I'd like to throw out if anyone is > going to be digging into to this. > > 1. Apache Portable Runtime (http://apr.apache.org) provides a C > threading API. Thought it probably isn't desirable to require APR > especially just for threading, it might be good to support it as a > threading option to support rarer platforms. The threading API of APR looks quite simple (and close to pthread), it shouldn't be a problem to support it the day it's needed. > 2. The CriticalSection instance in log4cxx::helpers::ObjectImpl causes > config.h to be expanded for the abstract classes in public API. > Isolating implementation details from the client API would require > removing the CriticalSection from the abstract base class and > reintroducing it in the concrete implementation classes. perhaps via > templating and/or macros. Another solution is to typedef the main types we use in threading, depending on PTHREAD (not HAVE_PTHREAD), and WIN32. This will require(Continue reading)
RSS Feed