summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbojan <bojan@13f79535-47bb-0310-9956-ffa450edef68>2008-07-28 21:39:20 +0000
committerbojan <bojan@13f79535-47bb-0310-9956-ffa450edef68>2008-07-28 21:39:20 +0000
commitbea619f8f0f1f7f9d94f30cc07f2979587009e5a (patch)
tree8d9e5729362c611c32e14e7a9d05db50475916f4 /include
parentf176858ce0ed2ea55701303e5c0c57dcef3fc9c1 (diff)
downloadlibapr-util-bea619f8f0f1f7f9d94f30cc07f2979587009e5a.tar.gz
Implement resource list when threads are unavailable.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@680514 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/apr_reslist.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/apr_reslist.h b/include/apr_reslist.h
index c4f81259..51c545b3 100644
--- a/include/apr_reslist.h
+++ b/include/apr_reslist.h
@@ -28,8 +28,6 @@
#include "apr_errno.h"
#include "apr_time.h"
-#if APR_HAS_THREADS
-
/**
* @defgroup APR_Util_RL Resource List Routines
* @ingroup APR_Util
@@ -78,6 +76,9 @@ typedef apr_status_t (*apr_reslist_destructor)(void *resource, void *params,
* @param pool The pool from which to create this resoure list. Also the
* same pool that is passed to the constructor and destructor
* routines.
+ * @remark If APR has been compiled without thread support, hmax will be
+ * automatically set to 1 and values of min and smax will be forced to
+ * 1 for any non-zero value.
*/
APU_DECLARE(apr_status_t) apr_reslist_create(apr_reslist_t **reslist,
int min, int smax, int hmax,
@@ -144,6 +145,4 @@ APU_DECLARE(apr_status_t) apr_reslist_invalidate(apr_reslist_t *reslist,
/** @} */
-#endif /* APR_HAS_THREADS */
-
#endif /* ! APR_RESLIST_H */