DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24325>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24325 apr_reslist doesn't work without threads Summary: apr_reslist doesn't work without threads Product: APR Version: 0.9.4 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: APR-util AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Currently, the complete apr_reslist source is surrounded by an #if APR_HAS_THREADS, thus making it impossible to use resource lists whenever APR doesn't support threads (which unfortunatly includes FreeBSD). Admittedly I'm pretty unsure if this issue should be addressed in the product's source, apr_reslist or maybe even both. It's main use is surely in a threaded environment, however I guess there might be cases when a resource list could be useful in a non-threaded environment, too (although I cannot come up with an example right now). So, instead of excluding the complete apr_reslist, I'd suggest to limit the #if APR_HAS_THREADS sections to those lines that actually make use of thread locks. However, if you think this doesn't belong into apr_reslist, I'd suggest to at least place an + #else + #error "apr_reslist doesn't support non-threaded environments" #endif /* APR_HAS_THREADS */ at the end of apr_reslist.h. The compiler's error messages aren't very clear and even seem to vary from platform to platfrom, making it hard to find the source of a problem on a FreeBSD (i.e. no threads) machine if you only have Linux (i.e. threads) at hand. Short: Would have saved me a few hours :-) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
