diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-10-06 13:10:00 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-10-06 13:10:00 +0200 |
commit | 88a906395ba7d33ae563e70d8b94c855e3b5a573 (patch) | |
tree | b0fa632b4c59d276b292407f79ee07aa9ef8dab8 /src/messagereceiver.cc | |
parent | 5727436afe5a8b1b60d99863cfc939ee50d4c17e (diff) |
Refactoring of AudioFile loading and message passing from engine to gui and vice versa.
Diffstat (limited to 'src/messagereceiver.cc')
-rw-r--r-- | src/messagereceiver.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/messagereceiver.cc b/src/messagereceiver.cc index f391aad..a24482b 100644 --- a/src/messagereceiver.cc +++ b/src/messagereceiver.cc @@ -47,7 +47,6 @@ void MessageReceiver::sendMessage(Message *msg) Message *MessageReceiver::receiveMessage() { - MutexAutolock l(message_mutex); Message *msg = NULL; if(message_queue.size()) { msg = message_queue.front(); @@ -58,7 +57,6 @@ Message *MessageReceiver::receiveMessage() Message *MessageReceiver::peekMessage() { - MutexAutolock l(message_mutex); Message *msg = NULL; if(message_queue.size()) { msg = message_queue.front(); @@ -68,6 +66,7 @@ Message *MessageReceiver::peekMessage() void MessageReceiver::handleMessages(size_t max) { + MutexAutolock l(message_mutex); bool process_all = false; if(max == 0) process_all = true; |