int main(int argc, char* argv[]) { std::cout << "Hello world, I'm the main thread, tid=" << pthread_self() << std::endl; HelloWorld hello; hello.start(); return 0; }
int main(int /*argc*/, char ** /*argv[]*/) { cout << "HelloWorldSync" << endl; int iRv = 0; try { HelloWorld helloWorld; helloWorld.start(); helloWorld.stop(); } catch (std::exception& e) { cerr << "Exception: " << e.what() << "\n"; iRv = -1; } return iRv;; }