Files
pip/main.cpp
Бычков Андрей f8f627360a PIThread cxx11 support
git-svn-id: svn://db.shs.com.ru/pip@883 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
2020-02-25 15:38:35 +00:00

14 lines
284 B
C++

#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;
}