Skip to content

Instantly share code, notes, and snippets.

@dreness
Created October 2, 2022 01:25
Show Gist options
  • Save dreness/74a871cf91affb4ac45ab1a1d6c0cfc8 to your computer and use it in GitHub Desktop.
Save dreness/74a871cf91affb4ac45ab1a1d6c0cfc8 to your computer and use it in GitHub Desktop.
In Vuo, load ISF modules synchronously
diff --git a/compiler/VuoCompiler.cc b/compiler/VuoCompiler.cc
index 6f281f04..2c7af1af 100644
--- a/compiler/VuoCompiler.cc
+++ b/compiler/VuoCompiler.cc
@@ -1731,7 +1731,7 @@ set<dispatch_group_t> VuoCompiler::Environment::compileModulesFromSourceCode(con
__block VuoModuleCompilationQueue::Item *queueItem = moduleCompilationQueue->next();
VUserLog("Compiling %s", queueItem->moduleKey.c_str());
- dispatch_async(queue, ^{
+ dispatch_sync(queue, ^{
try
{
VuoFileUtilities::makeDir(queueItem->cachedModulesPath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment