git-svn-id: svn://db.shs.com.ru/pip@376 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-04-17 12:30:56 +00:00
parent e0bafe58c9
commit b475d5fd16
2 changed files with 7 additions and 7 deletions

View File

@@ -275,11 +275,11 @@ __THREAD_FUNC__ PIThread::thread_function(void * t) {
ct.terminating = ct.running_ = false;
ct.tid_ = -1;
//cout << "thread " << t << " exiting ... " << endl;
//piCout << "pthread_exit" << ct.PRIVATE->thread;
//piCout << "pthread_exit" << (ct.__privateinitializer__.p)->thread;
PIINTROSPECTION_UNREGISTER_THREAD(ct.tid());
#ifndef WINDOWS
pthread_detach(ct.PRIVATE->thread);
ct.PRIVATE->thread = 0;
pthread_detach((ct.__privateinitializer__.p)->thread);
(ct.__privateinitializer__.p)->thread = 0;
#endif
#ifndef WINDOWS
pthread_exit(0);
@@ -317,11 +317,11 @@ __THREAD_FUNC__ PIThread::thread_function_once(void * t) {
ct.terminating = ct.running_ = false;
ct.tid_ = -1;
//cout << "thread " << t << " exiting ... " << endl;
//piCout << "pthread_exit" << ct.PRIVATE->thread;
//piCout << "pthread_exit" << (ct.__privateinitializer__.p)->thread;
PIINTROSPECTION_UNREGISTER_THREAD(ct.tid());
#ifndef WINDOWS
pthread_detach(ct.PRIVATE->thread);
ct.PRIVATE->thread = 0;
pthread_detach((ct.__privateinitializer__.p)->thread);
(ct.__privateinitializer__.p)->thread = 0;
#endif
#ifndef WINDOWS
pthread_exit(0);

View File

@@ -494,7 +494,7 @@ void PITimer::init() {
piCoutObj << "Warning: \"ThreadRT\" is not available at this system! Using \"Thread\".";
#endif
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;
imp->tfunc = tickImpS;