1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Arrange the bybusyness logic and prevent bad busy values

this closes #383


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1912245 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Frederic Clere
2023-09-11 13:50:21 +00:00
parent a077812a1b
commit 1b9292a4c9
4 changed files with 168 additions and 17 deletions

View File

@@ -40,6 +40,41 @@ extern PROXY_DECLARE_DATA const apr_strmatch_pattern *ap_proxy_strmatch_domain;
*/
void proxy_util_register_hooks(apr_pool_t *p);
/*
* Get the busy counter from the shared worker memory
*
* @param worker Pointer to the worker structure.
* @return apr_size_t value atomically read for the worker.
*/
PROXY_DECLARE(apr_size_t) getbusy_count(proxy_worker *worker);
/*
* Set the busy counter from the shared worker memory
*
* @param worker Pointer to the worker structure.
* @param to value to set the busy counter.
* @return void
*/
PROXY_DECLARE(void) setbusy_count(proxy_worker *worker, apr_size_t to);
/*
* decrement the busy counter from the shared worker memory
* note it is called by apr_pool_cleanup_register()
* therfore the void * and apr_status_t.
*
* @param worker_ Pointer to the worker structure.
* @return apr_status_t returns APR_SUCCESS.
*/
PROXY_DECLARE(apr_status_t) decrement_busy_count(void *worker_);
/*
* increment the busy counter from the shared worker memory
*
* @param worker Pointer to the worker structure.
* @return void
*/
PROXY_DECLARE(void) increment_busy_count(proxy_worker *worker);
/** @} */
#endif /* PROXY_UTIL_H_ */