From 42b699064ea2deec741bff6ee492108c939b4b95 Mon Sep 17 00:00:00 2001 From: HÃ¥vard Pettersen Date: Wed, 18 Dec 2019 11:44:41 +0000 Subject: compile in throw-away thread when not using an executor this is more similar to old behavior --- eval/src/vespa/eval/eval/llvm/compile_cache.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eval/src/vespa/eval/eval/llvm/compile_cache.cpp b/eval/src/vespa/eval/eval/llvm/compile_cache.cpp index b486a750992..9a262f6dca5 100644 --- a/eval/src/vespa/eval/eval/llvm/compile_cache.cpp +++ b/eval/src/vespa/eval/eval/llvm/compile_cache.cpp @@ -2,6 +2,7 @@ #include "compile_cache.h" #include +#include namespace vespalib { namespace eval { @@ -50,7 +51,7 @@ CompileCache::Token::UP CompileCache::compile(const Function &function, PassParams pass_params) { Token::UP token; - CompileTask::UP task; + Executor::Task::UP task; vespalib::string key = gen_key(function, pass_params); { std::lock_guard guard(_lock); @@ -71,7 +72,7 @@ CompileCache::compile(const Function &function, PassParams pass_params) } } if (task) { - task->run(); + std::thread([&task](){ task.get()->run(); }).join(); } return token; } -- cgit v1.2.3