[mlir] Do not start threads in AsyncRuntime

pthreads is not enabled for all builds by default

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D89967
This commit is contained in:
Eugene Zhulenev 2020-10-22 08:17:53 -07:00
parent 5c20d7db9f
commit a8b0ae3bdd

View file

@ -59,8 +59,7 @@ mlirAsyncRuntimeAwaitToken(AsyncToken *token) {
extern "C" MLIR_ASYNCRUNTIME_EXPORT void
mlirAsyncRuntimeExecute(CoroHandle handle, CoroResume resume) {
std::thread thread([handle, resume]() { (*resume)(handle); });
thread.detach();
(*resume)(handle);
}
extern "C" MLIR_ASYNCRUNTIME_EXPORT void