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

This commit is contained in:
2019-02-07 15:41:33 +00:00
parent dda96a9591
commit a8bb4c21f3

View File

@@ -189,11 +189,11 @@ PIThread::~PIThread() {
if (!running_ || PRIVATE->thread == 0) return; if (!running_ || PRIVATE->thread == 0) return;
#ifdef FREERTOS #ifdef FREERTOS
//void * ret(0); //void * ret(0);
piCout << "~PIThread" << PRIVATE->thread; //piCout << "~PIThread" << PRIVATE->thread;
//piCout << pthread_join(PRIVATE->thread, 0); //piCout << pthread_join(PRIVATE->thread, 0);
piCout << "FreeRTOS can't join pthreads! waiting for stop"; piCout << "FreeRTOS can't terminate pthreads! waiting for stop";
stop(true); stop(true);
piCout << "stopped!"; //piCout << "stopped!";
#else #else
#ifndef WINDOWS #ifndef WINDOWS
# ifdef ANDROID # ifdef ANDROID
@@ -297,7 +297,7 @@ void PIThread::terminate() {
#ifdef FREERTOS #ifdef FREERTOS
piCout << "FreeRTOS can't terminate pthreads! waiting for stop"; piCout << "FreeRTOS can't terminate pthreads! waiting for stop";
stop(true); stop(true);
piCout << "stopped!"; //piCout << "stopped!";
#else #else
if (PRIVATE->thread == 0) return; if (PRIVATE->thread == 0) return;
UNREGISTER_THREAD(this); UNREGISTER_THREAD(this);