git-svn-id: svn://db.shs.com.ru/pip@376 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -275,11 +275,11 @@ __THREAD_FUNC__ PIThread::thread_function(void * t) {
|
|||||||
ct.terminating = ct.running_ = false;
|
ct.terminating = ct.running_ = false;
|
||||||
ct.tid_ = -1;
|
ct.tid_ = -1;
|
||||||
//cout << "thread " << t << " exiting ... " << endl;
|
//cout << "thread " << t << " exiting ... " << endl;
|
||||||
//piCout << "pthread_exit" << ct.PRIVATE->thread;
|
//piCout << "pthread_exit" << (ct.__privateinitializer__.p)->thread;
|
||||||
PIINTROSPECTION_UNREGISTER_THREAD(ct.tid());
|
PIINTROSPECTION_UNREGISTER_THREAD(ct.tid());
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
pthread_detach(ct.PRIVATE->thread);
|
pthread_detach((ct.__privateinitializer__.p)->thread);
|
||||||
ct.PRIVATE->thread = 0;
|
(ct.__privateinitializer__.p)->thread = 0;
|
||||||
#endif
|
#endif
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
pthread_exit(0);
|
pthread_exit(0);
|
||||||
@@ -317,11 +317,11 @@ __THREAD_FUNC__ PIThread::thread_function_once(void * t) {
|
|||||||
ct.terminating = ct.running_ = false;
|
ct.terminating = ct.running_ = false;
|
||||||
ct.tid_ = -1;
|
ct.tid_ = -1;
|
||||||
//cout << "thread " << t << " exiting ... " << endl;
|
//cout << "thread " << t << " exiting ... " << endl;
|
||||||
//piCout << "pthread_exit" << ct.PRIVATE->thread;
|
//piCout << "pthread_exit" << (ct.__privateinitializer__.p)->thread;
|
||||||
PIINTROSPECTION_UNREGISTER_THREAD(ct.tid());
|
PIINTROSPECTION_UNREGISTER_THREAD(ct.tid());
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
pthread_detach(ct.PRIVATE->thread);
|
pthread_detach((ct.__privateinitializer__.p)->thread);
|
||||||
ct.PRIVATE->thread = 0;
|
(ct.__privateinitializer__.p)->thread = 0;
|
||||||
#endif
|
#endif
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
pthread_exit(0);
|
pthread_exit(0);
|
||||||
|
|||||||
@@ -494,7 +494,7 @@ void PITimer::init() {
|
|||||||
piCoutObj << "Warning: \"ThreadRT\" is not available at this system! Using \"Thread\".";
|
piCoutObj << "Warning: \"ThreadRT\" is not available at this system! Using \"Thread\".";
|
||||||
#endif
|
#endif
|
||||||
case PITimer::Thread: imp = new _PITimerImp_Thread(); break;
|
case PITimer::Thread: imp = new _PITimerImp_Thread(); break;
|
||||||
default: piCout << "Fatal: invalid implementation() of" << this << "!"; abort();
|
default: piCout << "Fatal: invalid implementation() of" << this << "!"; assert(0);
|
||||||
}
|
}
|
||||||
if (imp == 0) return;
|
if (imp == 0) return;
|
||||||
imp->tfunc = tickImpS;
|
imp->tfunc = tickImpS;
|
||||||
|
|||||||
Reference in New Issue
Block a user