apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: Reducing #ifdef burden on APR applications
Date Tue, 23 Aug 2005 17:12:57 GMT
At 07:00 AM 8/22/2005, Nick Kew wrote:
>On Monday 22 August 2005 12:13, Joe Orton wrote:
>>
>> What's really needed is a feature-detection API along with the ENOTIMPL
>> stubs.
>>
>>   if (apr_has_feature(APR_FEATURE_THREADS))
>>     /* create mutex */

FYI that only tells you that APR SUPPORTS threads(!)  It's almost
always the wrong decision, e.g. in httpd - we have ap_mpm_query()
which tells us if the MPM is actually threading.

Bill  


Mime
View raw message