]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: event_hdl: fix comment typo about _sync assertion
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 4 Apr 2023 19:43:31 +0000 (21:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Apr 2023 12:36:45 +0000 (14:36 +0200)
Fixing a comment relative to EVENT_HDL_ASSERT_SYNC macro where a
typo was made and the comment was lacking some context.

include/haproxy/event_hdl-t.h

index b8ef61a102dfe329be358537592926b8a632e77d..9efb548efb3a1d6e3fdcf20d3a2e209e7bd40973 100644 (file)
@@ -141,11 +141,12 @@ struct event_hdl_cb
        /* manage the subscription responsible for handing the event to us */
        const struct event_hdl_sub_mgmt *sub_mgmt;
 
-       /* used for the function wants to make sure
+       /* may be used by sync event handler to ensure
         * it runs in sync mode, and thus is eligible to access unsafe data.
         * This could save the day when users are copy-pasting function
         * logic from a sync handler to an async handler without
         * taking appropriate precautions and unsafe accesses are performed.
+        * (See EVENT_HDL_ASSERT_SYNC macro API helper)
         */
        uint8_t                         _sync;
 };