How to make two threads execute alternately?

前端 未结 0 1147
粉色の甜心
粉色の甜心 2020-11-21 19:11
  • I have two functions f1() and f2() I want f1() and f2() to execute alternately, without using a loop: Not like this : loop { f1(); f2(); }

    I just want to use

相关标签:
回答
  • 消灭零回复
提交回复
热议问题