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

    https://github.com/apache/qpid-dispatch/pull/177#discussion_r129332913
  
    --- Diff: src/buffer.c ---
    @@ -83,7 +85,26 @@ size_t qd_buffer_size(qd_buffer_t *buf)
     void qd_buffer_insert(qd_buffer_t *buf, size_t len)
     {
         buf->size += len;
    -    assert(buf->size <= buffer_size);
    +    assert(buf->size <= BUFFER_SIZE);
    +}
    +
    +void qd_buffer_add_fanout(qd_buffer_t *buf)
    +{
    +    buf->fanout++;
    --- End diff --
    
    Currently, the only function calling qd_buffer_add_fanout() is 
qdr_forward_new_delivery_CT(in forwarder.c) which is only called by the core 
thread. So, there should be no contention. But I am happy to change the fanout 
to atomic so that anybody else calling it outside of the core thread will not 
be affected.


---
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