[Threads-list] bug in Pthread::stop() function?
Brought to you by:
hanseno
From: Steve K. <ste...@we...> - 2004-09-24 10:03:40
|
Hi, today i first try out the c++ threads library, and i get a complete system crash when the function Pthread::stop() is called. Is this a bug or did i use the wrong function??? Here is my Implematation, which is quit simple: MyThread::MyThread():Pthread(){} void MyThread::start(){ this->run(); } void MyThread::stop(){ this->stop(); } int MyThread::thread(void *){ while(true){ cout << "Never stop running until stop!" << endl; sleep(1); } } My threads library version is 3.6.2 on a Suse 8.2 Linux Distribution Thanx for your help and time. Steve _________________________________________________________ Mit WEB.DE FreePhone? mit hochster Qualitat ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc=021201 |