Browse Source

Print assertion if audioMasterIdle called from wrong thread

tags/v2.1-alpha2
falkTX 5 years ago
parent
commit
3006738b6f
1 changed files with 5 additions and 6 deletions
  1. +5
    -6
      source/backend/plugin/CarlaPluginVST2.cpp

+ 5
- 6
source/backend/plugin/CarlaPluginVST2.cpp View File

@@ -1860,13 +1860,12 @@ protected:
break;

case audioMasterIdle:
if (pthread_equal(pthread_self(), fMainThread))
{
pData->engine->callback(ENGINE_CALLBACK_IDLE, 0, 0, 0, 0.0f, nullptr);
CARLA_SAFE_ASSERT_BREAK(pthread_equal(pthread_self(), fMainThread));

if (pData->engine->getType() != kEngineTypePlugin)
pData->engine->idle();
}
pData->engine->callback(ENGINE_CALLBACK_IDLE, 0, 0, 0, 0.0f, nullptr);

if (pData->engine->getType() != kEngineTypePlugin)
pData->engine->idle();
break;

#if ! VST_FORCE_DEPRECATED


Loading…
Cancel
Save