diff options
author | Stefan Eissing <icing@apache.org> | 2022-04-19 10:16:02 +0000 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2022-04-19 10:16:02 +0000 |
commit | 9d74016b80d2cf537811499df6bb46b079c8312e (patch) | |
tree | d1a89c2674d77e5a618e3aa02c87502a800fa4e4 /server | |
parent | 2d4d3032018a4a3e5b0760aee31f49d4e99cfadd (diff) | |
download | httpd-9d74016b80d2cf537811499df6bb46b079c8312e.tar.gz |
*) 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
Diffstat (limited to 'server')
-rw-r--r-- | server/scoreboard.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |