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 --- server/scoreboard.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server') diff --git a/server/scoreboard.c b/server/scoreboard.c index 688f89f75f..181477e357 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -429,6 +429,14 @@ AP_DECLARE(void) ap_create_sb_handle(ap_sb_handle_t **new_sbh, apr_pool_t *p, ap_update_sb_handle(*new_sbh, child_num, thread_num); } +AP_DECLARE(void) ap_sb_get_child_thread(ap_sb_handle_t *sbh, + int *pchild_num, int *pthread_num) +{ + AP_DEBUG_ASSERT(sbh); + *pchild_num = sbh->child_num; + *pthread_num = sbh->thread_num; +} + static void copy_request(char *rbuf, apr_size_t rbuflen, request_rec *r) { char *p; -- cgit v1.2.1