ass="o">.</span><span class="n">_ifc</span><span class="o">.</span><span class="n">buffer_status_mask</span>

        <span class="c1"># Acquire the streams lock</span>
        <span class="k">with</span> <span class="bp">self</span><span class="o">.</span><span class="n">_stream_lock</span><span class="p">:</span>
            <span class="n">closed_streams</span> <span class="o">=</span> <span class="p">[]</span>

            <span class="c1"># Process each opened stream</span>
            <span class="k">