From 4e25f081847cf2717ad561214e90d9750da5a511 Mon Sep 17 00:00:00 2001 From: Ali Abdulkadir Date: Fri, 3 Mar 2017 05:13:33 +0300 Subject: Isolated none-existing posix threading functions on Android --- qtools/qthread_unix.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qtools/qthread_unix.cpp b/qtools/qthread_unix.cpp index b536583..5871605 100644 --- a/qtools/qthread_unix.cpp +++ b/qtools/qthread_unix.cpp @@ -76,14 +76,18 @@ QThreadPrivate::~QThreadPrivate() void *QThreadPrivate::start(void *arg) { +#ifndef __ANDROID__ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); +#endif pthread_cleanup_push(QThreadPrivate::finish, arg); QThread *thr = reinterpret_cast(arg); thr->started(); +#ifndef __ANDROID__ pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); pthread_testcancel(); +#endif thr->run(); pthread_cleanup_pop(1); @@ -132,7 +136,9 @@ void QThread::start() pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_DETACHED); +#ifndef __ANDROID__ pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED); +#endif if (d->stackSize>0) { #if defined(_POSIX_THREAD_ATTR_STACKSIZE) && (_POSIX_THREAD_ATTR_STACKSIZE-0>0) @@ -160,7 +166,7 @@ void QThread::start() void QThread::terminate() { QMutexLocker locker(&d->mutex); - +#ifndef __ANDROID__ if (!d->thread_id) return; int code = pthread_cancel(d->thread_id); @@ -172,6 +178,7 @@ void QThread::terminate() { d->terminated = TRUE; } +#endif } void QThread::wait() -- cgit v0.12 From 5711b54b4813a2f4ce3b858e496ac846cbda69e5 Mon Sep 17 00:00:00 2001 From: Kunda Date: Sun, 5 Mar 2017 13:16:30 -0500 Subject: typos some doxy typos and some misc. source typos typos some doxy typos and some misc. source typos --- src/config.xml | 2 +- src/definition.cpp | 2 +- src/pre.l | 2 +- src/sqlite3gen.cpp | 4 ++-- src/tclscanner.l | 2 +- src/util.cpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/config.xml b/src/config.xml index 227f8bf..2a7cbeb 100644 --- a/src/config.xml +++ b/src/config.xml @@ -747,7 +747,7 @@ Go to the next section or return to the