#include <hpcxx_rts.h> #include <iostream.h> class MyThread : public HPCxx_Thread { char *x; public: MyThread(char *y): x(y),HPCxx_Thread(){} void run() { cout << x << endl << flush; } }; int main(int argc, char **argv) { HPCxx_Group *g; hpcxx_init(argc, argv, g); MyThread *t1 = new MyThread("Hello, world!\n"); t1->start(); t1->join(); cout << "DONE" << endl; return hpcxx_exit(g); } |
Benjamin Temko Last modified: Thu Jun 25 11:09:16 EST 1998