]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Slightly optimize h2_mplx_c1_streams_do().
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 1 Oct 2023 16:28:31 +0000 (16:28 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 1 Oct 2023 16:28:31 +0000 (16:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1912662 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_mplx.c

index 4637a5f66efd50156af5a6a2fa0d716f03e529fe..9e15742767cf65d065c2f34e22b291f95938dcd1 100644 (file)
@@ -384,10 +384,11 @@ apr_status_t h2_mplx_c1_streams_do(h2_mplx *m, h2_mplx_stream_cb *cb, void *ctx)
 {
     stream_iter_ctx_t x;
     
-    H2_MPLX_ENTER(m);
-
     x.cb = cb;
     x.ctx = ctx;
+
+    H2_MPLX_ENTER(m);
+
     h2_ihash_iter(m->streams, m_stream_iter_wrap, &x);
         
     H2_MPLX_LEAVE(m);