diff options
Diffstat (limited to 'src/drumgizmo.h')
-rw-r--r-- | src/drumgizmo.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/drumgizmo.h b/src/drumgizmo.h index 92faa3c..b7df7b9 100644 --- a/src/drumgizmo.h +++ b/src/drumgizmo.h @@ -71,14 +71,19 @@ public: std::string kitfile; /* - * Send a message to the engine. The engine takes over the memory. + * Receive message from the engine. The caller takes over the memory. */ - void sendMessage(Message *msg); + Message *receiveMessage(); /* - * Receive message from the engine. The caller takes over the memory. + * Receive message from the engine without removing it from the queue. */ - Message *receiveMessage(); + Message *peekMessage(); + + /* + * Add a message to the GUI message queue. + */ + void sendMessage(Message *msg); private: Mutex message_mutex; |