diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-04-04 21:19:58 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-04-04 21:19:58 +0200 |
commit | 77b3943b751bed43d230de6db322a750bfd1fc8e (patch) | |
tree | cd7d98bc8c06c660558a52f2b6b6ed73982efdf2 /src/drumgizmo.h | |
parent | 0e436ebcd7faacb557ab94952765cb6bcfd7d259 (diff) |
New message system. New common midi input class. Some compiler warning fixes. New ListBoxBasic class used by both LustBox and ComboBox. New embossed font.
Diffstat (limited to 'src/drumgizmo.h')
-rw-r--r-- | src/drumgizmo.h | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/src/drumgizmo.h b/src/drumgizmo.h index b7df7b9..c03fd95 100644 --- a/src/drumgizmo.h +++ b/src/drumgizmo.h @@ -73,21 +73,41 @@ public: /* * Receive message from the engine. The caller takes over the memory. */ - Message *receiveMessage(); + Message *receiveGUIMessage(); /* * Receive message from the engine without removing it from the queue. */ - Message *peekMessage(); + Message *peekGUIMessage(); /* * Add a message to the GUI message queue. */ - void sendMessage(Message *msg); + void sendEngineMessage(Message *msg); + + /* + * Receive message from the engine. The caller takes over the memory. + */ + Message *receiveEngineMessage(); + + /* + * Receive message from the engine without removing it from the queue. + */ + Message *peekEngineMessage(); + + /* + * Add a message to the GUI message queue. + */ + void sendGUIMessage(Message *msg); private: - Mutex message_mutex; - std::list<Message *> message_queue; + void handleEngineEvents(); + + Mutex gui_message_mutex; + std::list<Message *> gui_message_queue; + + Mutex engine_message_mutex; + std::list<Message *> engine_message_queue; DrumKitLoader loader; |