add initial FreeRTOS support

git-svn-id: svn://db.shs.com.ru/pip@685 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2019-02-05 00:53:14 +00:00
parent 763de789b0
commit 3721ec2e3d
4 changed files with 13 additions and 9 deletions

View File

@@ -389,7 +389,7 @@ bool PIThread::waitForStart(int timeout_msecs) {
void PIThread::__thread_func__(void * t) {
#ifndef WINDOWS
# ifndef ANDROID
# if !defined(ANDROID) && !defined(FREERTOS)
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, 0);
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, 0);
# endif
@@ -466,7 +466,7 @@ void PIThread::__thread_func__(void * t) {
void PIThread::__thread_func_once__(void * t) {
#ifndef WINDOWS
# ifndef ANDROID
# if !defined(ANDROID) && !defined(FREERTOS)
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, 0);
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, 0);
# endif