git-svn-id: svn://db.shs.com.ru/pip@714 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -188,12 +188,12 @@ PIThread::~PIThread() {
|
|||||||
piMonitor.threads--;
|
piMonitor.threads--;
|
||||||
if (!running_ || PRIVATE->thread == 0) return;
|
if (!running_ || PRIVATE->thread == 0) return;
|
||||||
#ifdef FREERTOS
|
#ifdef FREERTOS
|
||||||
|
//void * ret(0);
|
||||||
|
pthread_join(PRIVATE->thread, 0);
|
||||||
piCout << "FREERTOS can't terminate pthreads!";
|
piCout << "FREERTOS can't terminate pthreads!";
|
||||||
void * ret(0);
|
|
||||||
pthread_join(PRIVATE->thread, &ret);
|
|
||||||
#endif
|
#endif
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
# ifdef ANDROID
|
# ifdef ANDROIDe
|
||||||
pthread_kill(PRIVATE->thread, SIGTERM);
|
pthread_kill(PRIVATE->thread, SIGTERM);
|
||||||
# else
|
# else
|
||||||
pthread_cancel(PRIVATE->thread);
|
pthread_cancel(PRIVATE->thread);
|
||||||
|
|||||||
Reference in New Issue
Block a user