Browse Source

testing

tags/1.9.6
falkTX 9 years ago
parent
commit
11e277495f
1 changed files with 11 additions and 6 deletions
  1. +11
    -6
      source/utils/CarlaJuceEvents.cpp

+ 11
- 6
source/utils/CarlaJuceEvents.cpp View File

@@ -125,18 +125,23 @@ void MessageManager::doPlatformSpecificInitialisation()
{
JuceEventsThread& juceEventsThread(getJuceEventsThreadInstance());

if (! juceEventsThread.isInitializing())
juceEventsThread.startThread();
// TESTING
CARLA_SAFE_ASSERT(! juceEventsThread.isInitializing());

juceEventsThread.startThread();

for (; juceEventsThread.isInitializing();)
carla_msleep(5);
}

void MessageManager::doPlatformSpecificShutdown()
{
JuceEventsThread& juceEventsThread(getJuceEventsThreadInstance());

if (juceEventsThread.isInitializing())
juceEventsThread.signalThreadShouldExit();
else
juceEventsThread.stopThread(-1);
// TESTING
CARLA_SAFE_ASSERT(! juceEventsThread.isInitializing());
juceEventsThread.stopThread(-1);
}

bool MessageManager::postMessageToSystemQueue(MessageManager::MessageBase* const message)


Loading…
Cancel
Save