a class="code" href="a00014.html#g99e43010ec61327164466aa2d902de45">PT_WAIT_UNTIL</a>(pt, protothread2_flag != 0);
    printf(<span class="stringliteral">"Protothread 1 running\n"</span>);

    <span class="comment">/* We then reset the other protothread's flag, and set our own</span>
<span class="comment">       flag so that the other protothread can run. */</span>
    protothread2_flag = 0;
    protothread1_flag = 1;

    <span class="comment">/* And we loop. */</span>
  }

  <span class="comme