 class="keywordtype">int</span>
protothread2(<span class="keyword">struct</span> pt *pt)
{
  <a class="code" href="a00014.html#g2ffbb9e554e08a343ae2f9de4bedfdfc">PT_BEGIN</a>(pt);

  <span class="keywordflow">while</span>(1) {
    <span class="comment">/* Let the other protothread run. */</span>
    protothread2_flag = 1;

    <span class="comment">/* Wait until the other protothread has set its flag. */</span>
    <a class="code" href="a00014.html#g99e43010ec61327164466aa2d902de45">PT_WAIT_UNTIL<