Github user ganeshmurthy commented on a diff in the pull request:

    https://github.com/apache/qpid-dispatch/pull/177#discussion_r129333319
  
    --- Diff: src/message.c ---
    @@ -999,11 +1014,84 @@ void qd_message_set_ingress_annotation(qd_message_t 
*in_msg, qd_composed_field_t
         qd_compose_free(ingress_field);
     }
     
    +bool qd_message_is_discard(qd_message_t *msg)
    +{
    +    if (!msg)
    +        return false;
    +    qd_message_pvt_t *pvt_msg = (qd_message_pvt_t*) msg;
    +    return pvt_msg->content->discard;
    +}
    +
    +void qd_message_set_discard(qd_message_t *msg, bool discard)
    +{
    +    if (!msg)
    +        return;
    +
    +    qd_message_pvt_t *pvt_msg = (qd_message_pvt_t*) msg;
    +    pvt_msg->content->discard = discard;
    +}
    +
    +size_t qd_message_fanout(qd_message_t *in_msg)
    +{
    +    if (!in_msg)
    +        return 0;
    +    qd_message_pvt_t *msg = (qd_message_pvt_t*) in_msg;
    +    return msg->content->fanout;
    +}
    +
    +void qd_message_add_fanout(qd_message_t *in_msg)
    +{
    +    assert(in_msg);
    +    qd_message_pvt_t *msg = (qd_message_pvt_t*) in_msg;
    +    msg->content->fanout++;
    --- End diff --
    
    yes, agreed, atomic inc 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to