|
@@ -42,18 +42,21 @@ CarlaEngineThread::~CarlaEngineThread() noexcept |
|
|
void CarlaEngineThread::run() noexcept |
|
|
void CarlaEngineThread::run() noexcept |
|
|
{ |
|
|
{ |
|
|
CARLA_SAFE_ASSERT_RETURN(kEngine != nullptr,); |
|
|
CARLA_SAFE_ASSERT_RETURN(kEngine != nullptr,); |
|
|
|
|
|
#ifndef BUILD_BRIDGE |
|
|
CARLA_SAFE_ASSERT(kEngine->isRunning()); |
|
|
CARLA_SAFE_ASSERT(kEngine->isRunning()); |
|
|
|
|
|
#endif |
|
|
carla_debug("CarlaEngineThread::run()"); |
|
|
carla_debug("CarlaEngineThread::run()"); |
|
|
|
|
|
|
|
|
bool needsSingleThread, needsUiUpdates, oscRegisted; |
|
|
bool needsSingleThread, needsUiUpdates, oscRegisted; |
|
|
float value; |
|
|
float value; |
|
|
#ifdef BUILD_BRIDGE |
|
|
#ifdef BUILD_BRIDGE |
|
|
oscRegisted = false; |
|
|
oscRegisted = false; |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (; /*kEngine->isRunning() &&*/ ! shouldThreadExit();) |
|
|
|
|
|
{ |
|
|
|
|
|
#else |
|
|
for (; kEngine->isRunning() && ! shouldThreadExit();) |
|
|
for (; kEngine->isRunning() && ! shouldThreadExit();) |
|
|
{ |
|
|
{ |
|
|
#ifndef BUILD_BRIDGE |
|
|
|
|
|
oscRegisted = kEngine->isOscControlRegistered(); |
|
|
oscRegisted = kEngine->isOscControlRegistered(); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|