summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/include/cnxserver.hxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-01 20:36:19 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-01 20:36:19 +0000
commitfd4dd86fe8de2ddda1e8723973e8b5774528ebb7 (patch)
tree076f03852cb6bcd7a34d313558f7529143337e6d /NxWidgets/libnxwidgets/include/cnxserver.hxx
parent990276740afafeb69f64b01050a99f113bb89fa6 (diff)
downloadnuttx-fd4dd86fe8de2ddda1e8723973e8b5774528ebb7.tar.gz
nuttx-fd4dd86fe8de2ddda1e8723973e8b5774528ebb7.tar.bz2
nuttx-fd4dd86fe8de2ddda1e8723973e8b5774528ebb7.zip
More NxWM support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4682 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/include/cnxserver.hxx')
-rw-r--r--NxWidgets/libnxwidgets/include/cnxserver.hxx20
1 files changed, 14 insertions, 6 deletions
diff --git a/NxWidgets/libnxwidgets/include/cnxserver.hxx b/NxWidgets/libnxwidgets/include/cnxserver.hxx
index 3043fd9e0..c6ca21bfc 100644
--- a/NxWidgets/libnxwidgets/include/cnxserver.hxx
+++ b/NxWidgets/libnxwidgets/include/cnxserver.hxx
@@ -44,6 +44,7 @@
#include <stdint.h>
#include <stdbool.h>
+#include <semaphore.h>
#include <nuttx/nx/nx.h>
@@ -79,21 +80,28 @@ namespace NXWidgets
class CNxServer
{
private:
-#ifndef CONFIG_NX_MULTIUSER
FAR NX_DRIVERTYPE *m_hDevice; /**< LCD/Framebuffer device handle */
-#endif
NXHANDLE m_hNxServer; /**< NX server handle */
#ifdef CONFIG_NX_MULTIUSER
- voilatile bool m_running; /**< True: The listener thread is running */
- voilatile bool m_connected; /**< True: Connected to the server */
+ volatile bool m_running; /**< True: The listener thread is running */
+ volatile bool m_connected; /**< True: Connected to the server */
volatile bool m_stop; /**< True: Waiting for the listener thread to stop */
sem_t m_connsem; /**< Wait for server connection */
#endif
static uint8_t m_nServers; /**< The number of NX server instances */
/**
- * This is the entry point of a thread that listeners for and dispatches
- * events from the NX server.
+ * NX server thread. This is the entry point into the server thread that
+ * serializes the multi-threaded accesses to the display.
+ */
+
+#ifdef CONFIG_NX_MULTIUSER
+ static int server(int argc, char *argv[]);
+#endif
+
+ /**
+ * NX listener thread. This is the entry point of a thread that listeners for and
+ * dispatches events from the NX server.
*/
#ifdef CONFIG_NX_MULTIUSER