Lines Matching refs:buf2
65 buffer_node<int> buf2(g);
76 make_edge(buf2,input_port<1>(jn));
80 buf2.try_put(4);
81 buf2.try_put(7);
88 if(buf2.try_get(icnt)) printf("buf2 had %d\n", icnt);
89 else printf("buf2 was empty\n");
96 ``buf2``.
167 buf2.try_put(4);
170 ``buf2`` attempts to forward 4 to ``jn``. ``jn`` does not accept the
171 value and the arc from ``buf2`` to ``jn`` reverses. Now both inputs of
189 buf2.try_put(7);
192 ``buf2`` has no successor (because the arc to ``jn`` is reversed,) so it
215 - ``jn`` tries to reserve ``buf2``, which succeeds. ``jn`` receives the
216 value 4 from ``buf2``, but it remains in ``buf2``.
231 the push succeeded, ``jn`` signals ``buf1`` and ``buf2`` that the
262 buf2 had 7