// testDriver.cpp - a test driver for thread class #include "lockingPtr.h" #include "threads.h" class testThread : public thread { protected: virtual void run() { safeOut sout(cout); int i; for(i=0; i<20; i++) sout << "\n testing child thread processing"; } }; void main() { safeOut sout(cout); testThread t; t.start(); int i; for(i=0; i<20; i++) sout << "\n testing main thread processing"; }