From 9d74016b80d2cf537811499df6bb46b079c8312e Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 19 Apr 2022 10:16:02 +0000 Subject: *) core: add ap_sb_get_child_thread() to retrieve child_num and thread_num from a scoreboard handle. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900029 13f79535-47bb-0310-9956-ffa450edef68 --- include/ap_mmn.h | 3 ++- include/scoreboard.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ap_mmn.h b/include/ap_mmn.h index 7b6753cbe4..88868775a7 100644 --- a/include/ap_mmn.h +++ b/include/ap_mmn.h @@ -710,6 +710,7 @@ * Add new http/1.x formatting helpers * Add ap_assign_request_line() * 20211221.7 (2.5.1-dev) Add ap_h1_append_header() + * 20211221.8 (2.5.1-dev) Add ap_sb_get_child_thread() */ #define MODULE_MAGIC_COOKIE 0x41503235UL /* "AP25" */ @@ -717,7 +718,7 @@ #ifndef MODULE_MAGIC_NUMBER_MAJOR #define MODULE_MAGIC_NUMBER_MAJOR 20211221 #endif -#define MODULE_MAGIC_NUMBER_MINOR 7 /* 0...n */ +#define MODULE_MAGIC_NUMBER_MINOR 8 /* 0...n */ /** * Determine if the server's current MODULE_MAGIC_NUMBER is at least a diff --git a/include/scoreboard.h b/include/scoreboard.h index 321b32778a..7cf92e405a 100644 --- a/include/scoreboard.h +++ b/include/scoreboard.h @@ -183,6 +183,8 @@ AP_DECLARE(void) ap_create_sb_handle(ap_sb_handle_t **new_sbh, apr_pool_t *p, int child_num, int thread_num); AP_DECLARE(void) ap_update_sb_handle(ap_sb_handle_t *sbh, int child_num, int thread_num); +AP_DECLARE(void) ap_sb_get_child_thread(ap_sb_handle_t *sbh, + int *pchild_num, int *pthread_num); AP_DECLARE(int) ap_find_child_by_pid(apr_proc_t *pid); AP_DECLARE(int) ap_update_child_status(ap_sb_handle_t *sbh, int status, request_rec *r); -- cgit v1.2.3