#include "pip.h" void test() { piCout << "test"; } int main() { PIThread::runOnce([](){ while(1) piCout << "thread1"; }); PIThread::runOnce([](){ while(1) piCout << "thread2"; }); PIThread::runOnce([](){ while(1) piCout << "thread3"; }); piMSleep(1); return 0; }