VxWorks process (RTP) mode does not have taskLock/taskUnlock functions

VxWorks does not support to globally lock and unlock the scheduler from
process. In kernel mode (DKM) above functions disable preemption from
requested task and such functionality does not exist for process.

Change-Id: Id41eab4c1973e4181e82539d08707659e0780f99
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
This commit is contained in:
Pasi Petäjäjärvi 2012-06-11 16:14:06 +03:00 committed by The Qt Project
parent 2d8a4c2d3f
commit 49b8e21429

View File

@ -56,8 +56,13 @@ QT_BEGIN_HEADER
# include <vxWorksCommon.h>
# include <taskLib.h>
#else
#if defined(_WRS_KERNEL)
extern "C" int taskLock();
extern "C" int taskUnlock();
#else
inline int taskLock() { return 0; }
inline int taskUnlock() { return 0; }
#endif
#endif