1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-19 09:54:15 +01:00

Also added sched_yield().

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1071 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2010-07-11 20:27:03 +00:00 committed by peabody124
parent 9ff624bc0f
commit 4c4d1ca420

View File

@ -81,12 +81,10 @@
#define CHECK_TASK_RESUMES
#define RUNNING_THREAD_MUTEX
#define TICK_SIGNAL
#error Here
#endif
#ifdef __CYGWIN__
#define COND_SIGNALING
#define CHECK_TASK_RESUMES
#error Here too
#endif
#ifdef __linux__
#define CHECK_TASK_RESUMES
@ -536,6 +534,7 @@ tskTCB * oldTask, * newTask;
pthread_sigmask( SIG_SETMASK, &xSignals, NULL);
return;
}
sched_yield();
retVal = pthread_mutex_trylock( &xSwappingThreadMutex );
}