• Fedor Sheremetyev's avatar
    Set LWM to half of HWL. · bad93c53
    Fedor Sheremetyev authored
    This reduces chances of race between writer deactivation and activation.
    
    Reader sends activation command to writer when number or messages is
    multiple of LWM. In situation with high throughput (millions of messages
    per second) and correspondingly large HWM (e.g. 10M) the difference
    between HWM needs to be large enough - so that activation command is
    received before pipe becomes full.
    bad93c53
pipe.cpp 14.5 KB