diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-01 23:31:47 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-01 23:31:47 +0000 |
commit | f1310686dead78d5bbfecba31ee10bc2ec5d3bc3 (patch) | |
tree | 8fee6fd1421f4d25031cd8dec12d9723dfebef78 /NxWidgets/libnxwidgets/include/nxconfig.hxx | |
parent | f13e7a39a9af94a2f8706b62f2fb1aabc26cb67c (diff) | |
download | nuttx-f1310686dead78d5bbfecba31ee10bc2ec5d3bc3.tar.gz nuttx-f1310686dead78d5bbfecba31ee10bc2ec5d3bc3.tar.bz2 nuttx-f1310686dead78d5bbfecba31ee10bc2ec5d3bc3.zip |
Missed Calypso file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4685 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/include/nxconfig.hxx')
-rw-r--r-- | NxWidgets/libnxwidgets/include/nxconfig.hxx | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/NxWidgets/libnxwidgets/include/nxconfig.hxx b/NxWidgets/libnxwidgets/include/nxconfig.hxx index 682eadb82..1c7b6a3f0 100644 --- a/NxWidgets/libnxwidgets/include/nxconfig.hxx +++ b/NxWidgets/libnxwidgets/include/nxconfig.hxx @@ -119,13 +119,18 @@ */ #ifndef CONFIG_NXWIDGETS_SERVERPRIO -# define CONFIG_NXWIDGETS_SERVERPRIO SCHED_PRIORITY_DEFAULT +# define CONFIG_NXWIDGETS_SERVERPRIO (SCHED_PRIORITY_DEFAULT+1) #endif #ifndef CONFIG_NXWIDGETS_CLIENTPRIO # define CONFIG_NXWIDGETS_CLIENTPRIO SCHED_PRIORITY_DEFAULT #endif +#if CONFIG_NXWIDGETS_SERVERPRIO <= CONFIG_NXWIDGETS_CLIENTPRIO +# warning "CONFIG_NXWIDGETS_SERVERPRIO <= CONFIG_NXWIDGETS_CLIENTPRIO" +# warning" -- This can result in data overrun errors" +#endif + /** * NX server thread stack size (in multi-user mode) */ @@ -142,6 +147,11 @@ # define CONFIG_NXWIDGETS_LISTENERPRIO SCHED_PRIORITY_DEFAULT #endif +#if CONFIG_NXWIDGETS_SERVERPRIO <= CONFIG_NXWIDGETS_LISTENERPRIO +# warning "CONFIG_NXWIDGETS_SERVERPRIO <= CONFIG_NXWIDGETS_LISTENERPRIO" +# warning" -- This can result in data overrun errors" +#endif + /** * NX listener thread stack size (in multi-user mode) */ @@ -157,11 +167,19 @@ * CONFIG_NXWIDGETS_DEVNO - LCD device number (in case there are more than * one LCDs connected. Default: 0 * CONFIG_NXWIDGETS_VPLANE - Only a single video plane is supported. Default: 0 - * CONFIG_NXWIDGETS_SERVERPRIO - Priority of the NX server (in multi-user mode). - * Default: 50 - * CONFIG_NXWIDGETS_CLIENTPRIO - * CONFIG_NXWIDGETS_LISTENERPRIO - Priority of the NX event listener thread (in - * multi-user mode). Default: 50 + * CONFIG_NXWIDGETS_SERVERPRIO - Priority of the NX server. This applies + * only if NX is configured in multi-user mode (CONFIG_NX_MULTIUSER=y). + * Default: SCHED_PRIORITY_DEFAULT+1. NOTE: Of the three priority + * definitions here, CONFIG_NXWIDGETS_SERVERPRIO should have the highest + * priority to avoid data overrun race conditions. Such errors would most + * likely appear as duplicated rows of data on the display. + * CONFIG_NXWIDGETS_CLIENTPRIO - The thread that calls CNxServer::connect() + * will be re-prioritized to this priority. This applies only if NX is + * configured in multi-user mode (CONFIG_NX_MULTIUSER=y). Default: + * SCHED_PRIORITY_DEFAULT + * CONFIG_NXWIDGETS_LISTENERPRIO - Priority of the NX event listener thread. + * This applies only if NX is configured in multi-user mode + * (CONFIG_NX_MULTIUSER=y). Default: SCHED_PRIORITY_DEFAULT * CONFIG_NXWIDGETS_EXTERNINIT - Define to support external display * initialization. * CONFIG_NXWIDGETS_SERVERSTACK - NX server thread stack size (in multi-user |