A basic graphics package for the LPC4088 Display Module.

Dependents:   lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more

Fork of DMBasicGUI by EmbeddedArtists AB

Revision:
15:a68bb30ab95e
Parent:
13:bff2288c2c61
Child:
21:0038059e3a8f
--- a/SlideShow/Renderer.cpp	Mon Mar 09 10:50:17 2015 +0100
+++ b/SlideShow/Renderer.cpp	Mon Mar 09 11:08:43 2015 +0100
@@ -39,7 +39,6 @@
   }
 
   numRegisteredLayers = 0;
-  t = NULL;
   activeBackBuffer = 0;
   display = DMBoard::instance().display();
 
@@ -166,7 +165,7 @@
           // Very important that the signal is not sent while the lock is held
           // as it will cause the renderer thread be able to take it also
           setupMutex.unlock();
-          t->signal_set(layer->signalId);
+          osSignalSet(threadId, layer->signalId);
           return;
         } else {
           // no longer anything to show, clear back buffers
@@ -193,11 +192,15 @@
   layer->lock->unlock();
 
   // notify the renderer that there is new data for our layer
-  t->signal_set(layer->signalId);
+  osSignalSet(threadId, layer->signalId);
 }
 
 void Renderer::render()
 {
+  //save this thread's ID so that it may be signalled from 
+  //unregisterUser() and setFramebuffer()
+  threadId = Thread::gettid();
+    
   int mask = 1;//(1<<MaxNumLayers) - 1;
   while(true)
   {